azure-service-fabric - 在公共(public)服务结构集群中托管控制台应用程序

标签 azure-service-fabric

我正在尝试将控制台应用程序部署到服务结构。我能够在本地服务结构集群中成功部署和运行应用程序。但是当我尝试使用公共(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/

相关文章:

azure-service-fabric - Service Fabric 应用程序的根目录

dns - 在具有一个有状态和一个无状态的解决方案上,FabricDnsService 不是节点上的首选 DNS 服务器

azure - 如何关闭 Azure API 管理策略上的 SSL 验证?

c# - 带有服务结构的 SOAP - Https 和 Http 绑定(bind)

azure - 如何在 Azure Service Fabric 中为每个源 IP 分配 "instance affinity"?

c# - 正确地将配置注入(inject) ASP Core

c# - 使用微服务过程中的步骤向导 UI

azure - 如何维护部署在访问外部资源的多个集群中的 Service Fabric 微服务的状态

azure - ServiceFabric警告 "Endpoint with ExplicitPort is within application port range. This can cause port conflicts."

c# - 值类型的依赖注入(inject)