服务错误错误代码丢失Service Fabric [英] Code is missing for service error Service Fabric

查看:67
本文介绍了服务错误错误代码丢失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.

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

I have manually sorted out the ApplicationManifest file that seems fine

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

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

其余错误是

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

推荐答案

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

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

这篇关于服务错误错误代码丢失Service Fabric的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆