服务结构:找不到EntryPoint Blah.exe

spo*_*ahn 2 azure-service-fabric

我进行了一些项目重命名并更改了文件夹结构,现在我无法将服务结构应用程序部署到本地服务结构群集。

Register-ServiceFabricApplicationType:找不到EntryPoint IdentityService.exe。

  • 该应用已被调用IdentityApp,现在TheProject.Identity.App
  • 该服务已被调用IdentityWeb,现在TheProject.Identity.Service

更多日志详细信息

开始执行脚本“ Deploy-FabricApplication.ps1”。

。'C:\ Users \ mdepouw \ source \ repos \ TheProject \ TheProject.IdentityDomain \ TheProject.Identity.App \ Scripts \ Deploy-FabricApplication.ps1'-ApplicationPackagePath'C:\ Users \ mdepouw \ source \ repos \ TheProject \ TheProject。 IdentityDomain \ TheProject.Identity.App \ pkg \ Debug'-PublishProfileFile'C:\ Users \ mdepouw \ source \ repos \ TheProject \ TheProject.IdentityDomain \ TheProject.Identity.App \ PublishProfiles \ Local.5Node.xml'-DeployOnly:$ true -ApplicationParameter:@ {} -UnregisterUnusedApplicationVersionsAfterUpgrade $ false -OverrideUpgradeBehavior'None'-OverwriteBehavior'Always'-SkipPackageValidation:$ true -ErrorAction停止

正在将应用程序复制到图像存储中...

成功上传到图片存储

正在注册应用程序类型...

Register-ServiceFabricApplicationType:找不到EntryPoint IdentityService.exe。

文件名:C:\ SfDevCluster \ Data \ ImageBuilderProxy \ AppType \ IdentityAppType \ IdentityServicePkg \ ServiceManifest.xml

在C:\ Program Files \ Microsoft SDKs \ Service

Fabric \ Tools \ PSModule \ ServiceFabricSDK \ Publish-NewServiceFabricApplication.ps1:251 char:9

  • Register-ServiceFabricApplicationType -ApplicationPathInImage ...

  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~

    • CategoryInfo:InvalidOperation:(Microsoft.Servi ... usterConnection:ClusterConnection)[注册服务

    eFabricApplicationType],FabricException

    • FullyQualifiedErrorId:RegisterApplicationTypeErrorId,Microsoft.ServiceFabric.Powershell.RegisterApplicationType

完成执行脚本“ Deploy-FabricApplication.ps1”。

经过的时间:00:00:26.1378123

PowerShell脚本执行失败。

spo*_*ahn 5

TheProject.Identity.Service\PackageRoot\ServiceManifest.xml我必须更改<Program>以匹配新的exe名称

<!-- Code package is your service executable. -->
<CodePackage Name="Code" Version="1.0.0">
    <EntryPoint>
      <ExeHost>
        <Program>TheProject.Identity.Service.exe</Program>
        <WorkingFolder>CodePackage</WorkingFolder>
      </ExeHost>
    </EntryPoint>
</CodePackage>
Run Code Online (Sandbox Code Playgroud)