Why do I get a 500.19 Internal Server Error when publishing to IIS?


Here is the contents of my web.config file which was generated automatically:

<?xml version="1.0" encoding="utf-8"?>
  <location path="." inheritInChildApplications="false">
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
      <aspNetCore processPath="dotnet" arguments=".\RRRRAdminFrontend.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
<!--ProjectGuid: 2b13cd10-9360-4795-8443-00aebad0bb00-->

Error Message

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error Information:

   IIS Web Core 


   Not yet determined 

Error Code

Config Error

Config File

Requested URL

Physical Path

Logon Method
   Not yet determined 

Logon User
   Not yet determined 

Config Source:

Does anyone know where I'm going wrong or if I need to change anything with this? I'm not too familiar with working with IIS so I can show other code snippets if it would help.

asked on Stack Overflow Dec 29, 2020 by ChrisGranier • edited Dec 29, 2020 by ChrisGranier

1 Answer


If you want to host Asp.net core application on IIS, you need to install the ASP.NET Core Module/Hosting Bundle.

Download the installer using the following link:

Current .NET Core Hosting Bundle installer (direct download).

For more details instructions on how to install the ASP.NET Core Module, or installing different versions, see Install the .NET Core Hosting Bundle.

answered on Stack Overflow Dec 30, 2020 by Ding Peng

User contributions licensed under CC BY-SA 3.0