将我的一个应用程序部署到ServiceFabric Cluster失败,并触发了不健康评估,错误事件为:There was an error during CodePackage activation.Theservice host terminated with exit code:3762504530
但是,在部署应用程序的节点上,健康状态指示:The application was activated
我使用的是Deploy-FabricApplication.ps1脚本,该脚本是在您创建ServiceFabric项目以部署我的应用程序时生成的。在部署到服务Fabric集群时,如果我首先使用Connect-ServiceFabricCluster连接到本地集群,则可以在本地部署。但是,我的构建服务器不运行本地集群实例,因此我无法首先连接到本地实例。WARNING: Unable to Verify connection to Service