ASP. NET Core APP Deployment Failure Example

Source: Internet
Author: User
Tags dotnet net core windows server hosting server hosting

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.