服务结构:找不到EntryPoint Blah.exe [英] Service Fabric: The EntryPoint Blah.exe is not found
问题描述
我做了一些项目重命名并更改了文件夹结构,现在我无法将服务结构应用程序部署到本地服务结构群集中.
I did some project renaming and changed the folder structure and now I can't deploy my service fabric app to my local service fabric cluster.
Register-ServiceFabricApplicationType:找不到EntryPoint IdentityService.exe.
Register-ServiceFabricApplicationType : The EntryPoint IdentityService.exe is not found.
- 该应用名为
IdentityApp
,现在为TheProject.Identity.App
- 该服务名为
IdentityWeb
,现在为TheProject.Identity.Service
- The app was called
IdentityApp
and is nowTheProject.Identity.App
- The service was called
IdentityWeb
and is nowTheProject.Identity.Service
-
Register-ServiceFabricApplicationType -ApplicationPathInImage ...
Register-ServiceFabricApplicationType -ApplicationPathInImage ...
- CategoryInfo:InvalidOperation:(Microsoft.Servi ... usterConnection:ClusterConnection)[注册服务
- FullyQualifiedErrorId:RegisterApplicationTypeErrorId,Microsoft.ServiceFabric.Powershell.RegisterApplicationType
更多日志详细信息
开始执行脚本'Deploy-FabricApplication.ps1'.
Started executing script '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 Stop
. '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 Stop
正在将应用程序复制到图像存储...
Copying application to image store...
成功上传到Image Store
Upload to Image Store succeeded
正在注册应用程序类型...
Registering application type...
Register-ServiceFabricApplicationType:找不到EntryPoint IdentityService.exe.
Register-ServiceFabricApplicationType : The EntryPoint IdentityService.exe is not found.
文件名:C:\ SfDevCluster \ Data \ ImageBuilderProxy \ AppType \ IdentityAppType \ IdentityServicePkg \ ServiceManifest.xml
FileName: C:\SfDevCluster\Data\ImageBuilderProxy\AppType\IdentityAppType\IdentityServicePkg\ServiceManifest.xml
在C:\ Program Files \ Microsoft SDKs \ Service
At C:\Program Files\Microsoft SDKs\Service
Fabric \ Tools \ PSModule \ ServiceFabricSDK \ Publish-NewServiceFabricApplication.ps1:251 char:9
Fabric\Tools\PSModule\ServiceFabricSDK\Publish-NewServiceFabricApplication.ps1:251 char:9
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
eFabricApplicationType],FabricException
eFabricApplicationType], FabricException
完成执行脚本'Deploy-FabricApplication.ps1'.
Finished executing script 'Deploy-FabricApplication.ps1'.
经过的时间:00:00:26.1378123
Time elapsed: 00:00:26.1378123
PowerShell脚本执行失败.
The PowerShell script failed to execute.
推荐答案
在TheProject.Identity.Service\PackageRoot\ServiceManifest.xml
中,我不得不更改<Program>
以匹配新的exe名称
In TheProject.Identity.Service\PackageRoot\ServiceManifest.xml
I had to change the <Program>
to match the new exe name
<!-- 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>
这篇关于服务结构:找不到EntryPoint Blah.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!