【问题标题】:Code is missing for service error Service Fabric服务错误 Service Fabric 缺少代码
【发布时间】:2018-07-21 11:49:25
【问题描述】:

我正在尝试将新服务部署到我的 Service Fabric 集群中

我确信我以与其他服务相同的方式创建它。

我已经手动整理出看起来不错的ApplicationManifest文件

但是,当我尝试运行本地开发集群时,VS 因 powershell 错误而崩溃

Register-ServiceFabricApplicationType : The BuildLayout of the application in 
6>C:\SfDevCluster\Data\ImageBuilderProxy\AppType\Inspired.TradingPlatform.ServiceFabricType is invalid. Code is missing 
6>for service Inspired.TradingPlatform.TrayportApi.Primary.ServiceFabricPkg.
6>At C:\Program Files\Microsoft SDKs\Service 
6>Fabric\Tools\PSModule\ServiceFabricSDK\Publish-NewServiceFabricApplication.ps1:251 char:9

这个错误真的没有帮助,它并没有告诉我缺少什么代码

其余的错误是

   Register-ServiceFabricApplicationType -ApplicationPathInImage ...
6>    + CategoryInfo          : InvalidOperation: (Microsoft.Servi...usterConnection:ClusterConnection) [Register-Servic 
6>   eFabricApplicationType], FabricException
6>    + FullyQualifiedErrorId : RegisterApplicationTypeErrorId,Microsoft.ServiceFabric.Powershell.RegisterApplicationType

【问题讨论】:

  • 请在异常堆栈中挖掘并发布更多详细信息,当前的详细信息几乎没有用,您可能缺少代码文件/脚本,您是否有任何发布/预构建事件
  • 我想我记得在我的 ServiceManifest.xml 中的可执行文件路径错误时看到了这一点。

标签: c# powershell azure-service-fabric


【解决方案1】:

@HiredMind 谢谢这是问题所在!我的项目更喜欢 x32,即使更改为 x64 也只是在应该调试的时候进行调试\x64 谢谢!

【讨论】:

  • 干得好!您能否对此进行扩展以帮助遇到相同问题的其他人?还可以考虑接受您的回答,因为它已经解决了问题。
猜你喜欢
  • 1970-01-01
  • 2016-03-08
  • 2016-10-27
  • 2019-05-31
  • 2019-10-28
  • 1970-01-01
  • 2017-09-17
  • 2018-07-24
  • 2018-05-30
相关资源
最近更新 更多