2

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

1 Answers1

1

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

LoekD
  • 11,402
  • 17
  • 27
  • I added on my main post the screen about the versions of my packages, and they seems to be the same version as ur suggestion. If u can try to be as much clear as u can while im new in .NET and with ServiceFabric, Tnx for helping me. – Jafor Mohammad Feb 07 '18 at 13:18
  • First install Web Platform Installer, http://go.microsoft.com/fwlink/?LinkId=255386 Next, run it to install `Microsoft Azure Service Fabric SDK and Tools 3.0.456 (VS2015)` – LoekD Feb 07 '18 at 13:26
  • I installed from the Web Platform 5.0 and if i run the file you linked me it says "Installed". You can see it from the last screen of my post i just added a new screen that shows you the versions of my packages and the Web Platform from where i installed Service fabrick SDK and Tools – Jafor Mohammad Feb 07 '18 at 13:35
  • Microsoft Azure Service Fabric SDK - 3.0.456 Installed Microsoft Azure Service Fabric SDK and Tools - 3.0.456(VS2015) Installed Microsoft Azure PowerShell Installed – Jafor Mohammad Feb 07 '18 at 13:39
  • do you have sufficient disk space? – LoekD Feb 07 '18 at 13:59
  • 335 GB Avalaible on "C:", the only partition i have. – Jafor Mohammad Feb 07 '18 at 14:13
  • Forgot to tell you that i tryed to use many version of .NET (when i create a default project it uses 4.5.2) but all of them give me the same Exception – Jafor Mohammad Feb 07 '18 at 16:16
  • What happens if you create a new project with a stateful service, without any custom code in it, and run that? Does that work? – LoekD Feb 07 '18 at 16:31
  • it doesent work, 1st, 2nd and 4rth screens are about my default Statefull project – Jafor Mohammad Feb 08 '18 at 08:38
  • can you run your service on a (party) cluster in Azure and see if it's your code, or local cluster? (https://try.servicefabric.azure.com/) – LoekD Feb 08 '18 at 13:08