Related reading: The Windows + IIS environment deploys the ASP. NET Core App |
1. HTTP Error 502.5–process FailureEnvironment
Windows Server, IIS 8, ASP. NET Core 1.1.
malfunction
The following error occurred through browser access after the app was published as a normal process:
HTTP Error 502.5–process Failure
- The application process failed to start
- The application process started and then stopped
- The application process started but failed to listen on the configured port
|
Wrong Row
1. The information returned by the page is informed that the error was caused by the app not being started or terminated after it was started. The more likely reason is that the ASP. NET Core module or kestrel,iis problem is less likely.
2. Look at the Windows logs and display the error message:
' Machine/webroot/apphost/iteam. Vicp.net 8089'"dotnet" . \webapplication1.dll' ' 0x80004005 80008083.
The log information indicates that an error occurred while executing the dotnet \webapplication1.dll command.
3. Open the command line and execute dotnet \webapplication1.dll:
The problem is clear. The failure is due to a server-side. NET core version that is lower than the. NET core version of the app.
Solve
Install the latest version of the. NET Core Windows Server hosting assembly on the server.
Analysis
Currently, the. Net core version is frequently updated, and because Visual Studio has an update alert mechanism, program components in the development environment tend to be relatively new, and program components on the server are generally not updated frequently and can cause failures when deployed.
ASP. NET Core APP Deployment Failure Example