ASP.Net Core Hosting 500 Internal Server Error Issues



Server Error
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.


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

Troubleshooting steps: 
• Check the system event log for error messages 
• Enable logging the application process' stdout messages 
• Attach a debugger to the application process and inspect

For more information visit:

Browser showing 500 Internal Server Error after published my ASP.Net Core application to the Windows IIS web server.


Windows 2016 Server with IIS, ASP.NET Core version 2.0.7


Make sure “Hosting Bundle Installer” is installed which includes Windows Server Hosting and .Net Core Runtime version of your choice. You can do this even you had installed either one of them. These two pieces of software are needed to run ASP.Net Core Application.

Option 1:-

1) install “Hosting Bundle Installer” file version 2.0.7 from or latest version

2) browse to your web site and see if it fixes the issue


  1. You can always download the latest version of .Net Core Runtime from
  2. Double check if you have installed both software under Program and Features

    Hosting Bundle Installer version 2.0.6
  3. To enable logging the application process’ stdout messages, open file web.config and change stdoutLogEnabled attribute from false to true as shown below
    <?xml version="1.0" encoding="utf-8"?>
        <aspNetCore processPath="dotnet" arguments=".\Ms.App.Web.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" />
  4. To see which version you need, you could check a file [YourProjName].runtimeconfig.json
      "runtimeOptions": {
        "tfm": "netcoreapp2.0",
        "framework": {
          "name": "Microsoft.AspNetCore.App",
          "version": "2.0.6"