gpt4 book ai didi

azure-service-fabric - 找不到 Service Fabric : The EntryPoint Blah. exe

转载 作者:行者123 更新时间:2023-12-01 22:51:29 26 4
gpt4 key购买 nike

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

Register-ServiceFabricApplicationType : The EntryPoint IdentityService.exe is not found.


  • 该应用程序名为 IdentityApp现在是 TheProject.Identity.App
  • 该服务被称为 IdentityWeb现在是 TheProject.Identity.Service


  • 更多日志详情

    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

    Copying application to image store...

    Upload to Image Store succeeded

    Registering application type...

    Register-ServiceFabricApplicationType : The EntryPoint IdentityService.exe is not found.

    FileName: C:\SfDevCluster\Data\ImageBuilderProxy\AppType\IdentityAppType\IdentityServicePkg\ServiceManifest.xml

    At 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) [Register-Servic

      eFabricApplicationType], FabricException

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

    Finished executing script 'Deploy-FabricApplication.ps1'.

    Time elapsed: 00:00:26.1378123

    The PowerShell script failed to execute.

    最佳答案

    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>

    关于azure-service-fabric - 找不到 Service Fabric : The EntryPoint Blah. exe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47290671/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com