ASP.NET Core 2.0 Preview 2 on IIS error 502.5

VN-Clip.com picture VN-Clip.com · Jul 15, 2017 · Viewed 21.4k times · Source

I use asp.net core 2 Preview 2.

I opened stdoutLogEnabled = "true" in web.config but the system does not write logs.

Deploying on windows server 2012 r2 gives :

Error

HTTP Error 502.5 - Process Failure.

Web.config

<aspNetCore processPath="dotnet" arguments=".\App.WebHost.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />

Logs

image logs

Please help me.

Answer

majita picture majita · Dec 5, 2017

I had this same problem, even after installing the hosting bundle. The solution was in the documentation -

Restart the system or execute net stop was /y followed by net start w3svc from a command prompt to pick up a change to the system PATH.

This is done after installing the .NET Core Windows server hosting bundle.