Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Core 2.0 Preview 2 on IIS error 502.5

Tags:

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.

like image 265
VN-Clip.com Avatar asked Jul 15 '17 03:07

VN-Clip.com


2 Answers

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.

like image 127
majita Avatar answered Sep 19 '22 18:09

majita


Try to install .NET Core SDK on the server:

https://www.microsoft.com/net/download/core

It solved the same problem for me.

like image 25
Voice Of Orion Avatar answered Sep 17 '22 18:09

Voice Of Orion