公共服务矩阵群集中的托管控制台应用程序 [英] Hosting console application in public service fabric cluster

查看:90
本文介绍了公共服务矩阵群集中的托管控制台应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将控制台应用程序部署到服务结构.我能够在本地服务矩阵群集中成功部署和运行该应用程序.但是,当我尝试使用公共服务结构群集时,我在服务结构浏览器中看到以下警告,并且该应用程序未运行.

I am trying to deploy a console application to service fabric. I was able to successfully deploy and run the application in local service fabric cluster. But when I am trying with public service fabric cluster, I am seeing below warning in service fabric explorer and the application is not running.

不健康事件:SourceId ='System.Hosting', Property ='CodePackageActivation:C:EntryPoint',HealthState ='Warning', ThoughtWarningAsError = false.CodePackage发生错误 激活.服务主机终止,退出代码:3762504530

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框架版本,该版本在配置了VM的虚拟机上不存在服务结构群集.他们目前提供开箱即用的.NET 4.5.1,而本月将增加.NET 4.5.2.尝试将您的应用重新定位到4.5.1.

The most common explanation for code the runs locally but not in Azure is that you're targeting a .NET framework version that is not present on the VMs provisioned in a Service Fabric cluster. They currently provide .NET 4.5.1 out of the box, with .NET 4.5.2 getting added some time this month. Try retargeting your app to 4.5.1.

更新:从2016年2月开始,为Service Fabric群集配置的VM默认带有.NET 4.5.2.

Update: as of February 2016, VMs provisioned for Service Fabric clusters come with .NET 4.5.2 by default.

这篇关于公共服务矩阵群集中的托管控制台应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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