简体   繁体   中英

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 秒错误 Screen error of every 14 sec more or less

日志The full log of the error

主要项目错误Error in my main project which is the same as my default test project Statefull

版本Versions information of my packages

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM