简体   繁体   中英

Code is missing for service error Service Fabric

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

@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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM