Code is missing for service error Service Fabric

本秂侑毒 提交于 2019-12-11 00:16:06

问题


I am trying to deploy a new service in to my service fabric cluster

I am sure I have created this in the same way as my other services.

I have manually sorted out the ApplicationManifest file that seems fine

However, when I try to run the local dev cluster VS crashes out with powershell error

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

This error is really unhelpful, it doesnt tell me anything about what code is missing

The rest of the error is

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

回答1:


@HiredMind thanks that was the issue! My project was preferring x32 and even when changed to x64 was just going to debug when it should have been debug\x64 Thanks!



来源:https://stackoverflow.com/questions/48727325/code-is-missing-for-service-error-service-fabric

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!