502.5 error when deploying asp.net core website using IIS


Tori E

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

Most importantly, we can't get past 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 with no luck: ASP.NET Core 1.0 on IIS Error 502.5

How do you debug a 502.5 error to find the actual reason for the failure?

The log files for the application are being created, but unfortunately they are empty. The web server's event viewer contains the following entries:

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

Any help would be greatly appreciated! Conservative Party.

steven frank

I've been working on this with a .NET Core 2.0 website, and I got over it once I realized that IIS needs a web.config on the server.

Here is my file, for me the key elements are 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>

Related


502.5 error when deploying asp.net core website using IIS

Tori E I have an ASP.NET Core 1.0 application that has been successfully deployed and running on a pre-production server for several months. Today I tried to deploy the website to our production server using this article as a guide : https://docs.asp.net/en/la

502.5 error when deploying asp.net core website using IIS

Tori E I have an ASP.NET Core 1.0 application that has been successfully deployed and running on a pre-production server for several months. Today I tried to deploy the website to our production server using this article as a guide : https://docs.asp.net/en/la

502.5 error when deploying asp.net core website using IIS

Tori E I have an ASP.NET Core 1.0 application that has been successfully deployed and running on a pre-production server for several months. Today I tried to deploy the website to our production server using this article as a guide : https://docs.asp.net/en/la

502.5 error when deploying asp.net core website using IIS

Tori E I have an ASP.NET Core 1.0 application that has been successfully deployed and running on a pre-production server for several months. Today I tried to deploy the website to our production server using this article as a guide : https://docs.asp.net/en/la

502.5 error when deploying asp.net core website using IIS

Tori E I have an ASP.NET Core 1.0 application that has been successfully deployed and running on a pre-production server for several months. Today I tried to deploy the website to our production server using this article as a guide : https://docs.asp.net/en/la

Server Error 502 when deploying .NET Core RC2 in IIS

Jean-Pierre Fortin I developed an MVC website using .NET Core RC2 developed by VS Code on Mac and trying to deploy it in Windows Server 2012 R2 IIS. I use https://docs.asp.net/en/latest/publishing/iis.html for reference. My project.json has Microsoft.AspNetCor

Server Error 502 when deploying .NET Core RC2 in IIS

Jean-Pierre Fortin I developed an MVC website using .NET Core RC2 developed by VS Code on Mac and trying to deploy it in Windows Server 2012 R2 IIS. I use https://docs.asp.net/en/latest/publishing/iis.html for reference. My project.json has Microsoft.AspNetCor

500 error when deploying asp.net core web api to IIS 7.5

username I have an asp.net core web API project that I am trying to host in IIS 7.5. As suggested in the following article, Could not find configuration file 'appsettings.json', it is not optional Below is my "appsettings.json" file, { "ConnectionStrings": {

Deploying ASP.NET Core API to local IIS error 500

Michael Reno Platama Setavan I have a problem with my application after deploying to local IIS. I've made an API using ASP.NET Core and have run it on Visual Studio and it works. It can perform GET, POST, PUT and DELETE requests. Then I want to deploy it to lo

Deploying ASP.NET Core API to local IIS error 500

Michael Reno Platama Setavan I have a problem with my application after deploying to local IIS. I've made an API using ASP.NET Core and have run it on Visual Studio and it works. It can perform GET, POST, PUT and DELETE requests. Then I want to deploy it to lo

Deploying ASP.NET Core API to local IIS error 500

Michael Reno Platama Setavan I have a problem with my application after deploying to local IIS. I've made an API using ASP.NET Core and have run it on Visual Studio and it works. It can perform GET, POST, PUT and DELETE requests. Then I want to deploy it to lo

Deploying ASP.NET Core API to local IIS error 500

Michael Reno Platama Setavan I have a problem with my application after deploying to local IIS. I've made an API using ASP.NET Core and have run it on Visual Studio and it works. It can perform GET, POST, PUT and DELETE requests. Then I want to deploy it to lo

Deploying ASP.NET Core API to local IIS error 500

Michael Reno Platama Setavan I have a problem with my application after deploying to local IIS. I've made an API using ASP.NET Core and have run it on Visual Studio and it works. It can perform GET, POST, PUT and DELETE requests. Then I want to deploy it to lo

ASP.NET .Net Core IIS returns 502 when request from Extranet

Tao Zhu I successfully published an asp.net core (full framework) site to a server running Windows 2008 R2 and IIS 7. When I try to access it from PC it always returns 502 Bad GateWay like this: Extranet visit but when I access it from server it works fine. I