我正在尝试将控制台应用程序部署到服务结构。我能够在本地服务结构集群中成功部署和运行应用程序。但是当我尝试使用公共(public)服务结构集群时,我在服务结构资源管理器中看到以下警告并且应用程序没有运行。
Unhealthy event: SourceId='System.Hosting', Property='CodePackageActivation:C:EntryPoint', HealthState='Warning', ConsiderWarningAsError=false.There was an error during CodePackage activation.The service host terminated with exit code: 3762504530
最佳答案
对于在本地运行但不在 Azure 中运行的代码,最常见的解释是,您的目标是 .NET 框架版本,该版本在 Service Fabric 群集中预配的 VM 上不存在。他们目前提供开箱即用的 .NET 4.5.1,本月某个时候会添加 .NET 4.5.2。尝试将您的应用重定向到 4.5.1。
更新 :截至 2016 年 2 月,为 Service Fabric 群集预配的 VM 默认随附 .NET 4.5.2。
关于azure-service-fabric - 在公共(public)服务结构集群中托管控制台应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35578005/