Jafor Mohammad
Jafor Mohammad

Reputation: 21

Service Fabric - Service initialization failed

I'm using visual studio 2015 and I have created a default Statefull project and having this error:

Exception thrown: 'System.Fabric.FabricException' in mscorlib.dll An unhandled exception of type 'System.Fabric.FabricException' occurred in SPMService.exe System.Runtime.InteropServices.COMException: Exception HRESULT: 0x80071D2D

I have not changed App.config or package.config (it's a default project).

<packages>
<package id="Microsoft.ServiceFabric" version="6.1.456" targetFramework="net452" />
<package id="Microsoft.ServiceFabric.Data" version="3.0.456" targetFramework="net452" />
<package id="Microsoft.ServiceFabric.Diagnostics.Internal" version="3.0.456" targetFramework="net452" />
<package id="Microsoft.ServiceFabric.Services" version="3.0.456" targetFramework="net452" /> </packages>

In my Default Statefull project (which has made to test the error) i have the error ever 14 sec more or less.

*11:21:14.561 ServiceHostInizializationFailed Service host inizializzation failed.

It counts till 14 the i have the error Service host initialization failed:

14 sec error Screen error of every 14 sec more or less

LOG The full log of the error

Main project error Error in my main project which is the same as my default test project Statefull

Versions Versions information of my packages

Upvotes: 2

Views: 958

Answers (1)

LoekD
LoekD

Reputation: 11470

Make sure that the version of the Service Fabric Tools installed on your machine matches the Nuget packages you reference in code. Ideally they should be the same. Use the web platform installer to install the latest tools. 3.0.456 (VS2015)

Higher versions of Nuget packages are not always compatible with lower versions of the SDK. Use Nuget package manager to install the latest packages. 3.0.456

Upvotes: 1

Related Questions