Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hosting console application in public service fabric cluster

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.

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

like image 899
DevMJ Avatar asked Feb 23 '16 12:02

DevMJ


1 Answers

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.

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

like image 85
Sean McKenna Avatar answered Sep 25 '22 17:09

Sean McKenna