Error 502.5 when deploying the main asp.net website using IIS

I have an ASP.NET Core 1.0 application that has been successfully deployed and launched on our pre-prod server for several months. Today I tried to deploy the site on our production server, using this article as a guide: https://docs.asp.net/en/latest/publishing/iis.html

In the bottom line we can not get through this error:

HTTP Error 502.5 - Process Failure Common causes of this issue: * The application process failed to start * The application process started but then stopped * The application process started but failed to listen on the configured port 

We tried the ideas listed in this article, but still no luck: ASP.NET Core 1.0 with IIS 502.5 error

How do you feel about debugging error 502.5 to get to the actual cause of the failure?

Application log files are created, but unfortunately they are empty. The web server event viewer contains this entry:

 Process was created with commandline 'D:\Applications\PVP\UserInterface.exe' but failed to get the status, errorCode = 0x80070005 

Any help would be greatly appreciated! Tory.

+5
source share
2 answers

I struggled with this with the .NET Core 2.0 site, and as soon as I realized that IIS needed a web.config server, I passed it.

Here is my file, the key elements for me were processPath and arguments.

 <?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <handlers> <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" /> </handlers> <aspNetCore processPath="dotnet" arguments=".\My App.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" /> </system.webServer> </configuration> 
+2
source

Try highlighting if the problem is a server (IIS) or application. Do this by finding and running the application directly. Find your web.config and start the process.

For a DLL, this is:

 dotnet MyApp.dll 

For EXE, this is:

 MyApp.exe 

For you, this probably means running D:\Applications\PVP\UserInterface.exe directly.

+3
source

All Articles