HTTP Error 500.19 when publish .net core project into iis

I want to publish a sample .net core web application on my pc's IIS manager but I failed. I am using Microsoft guidance but it doesn't work for me, if you have reasonable experience to fix this problem I would be grateful to see your suggestions.


The identity under which your web application runs in IIS doesn't have full access to the folder in which the web.config file is found. Which version of IIS are you using? Assuming 7, you can view/change the identity through the 'Advanced Settings' of the application pool that hosts your application. Folder permissions can be granted via Windows Explorer in the usual way.

I was missing the AspNetCoreModule from IIS->Modules. After I installed that I no longer had the 500.19 error.

To find out more this blog was great:

Here is the page from Microsoft to find the download:

You have to install the "Hosting Bundle Installer". Without this, IIS doesn't understand routing and cannot host your application.

Go to microsoft site "" and install "Hosting Bundle Installer":

Before installing this you have to install the right version of runtime: Than install the right version of "Hosting Bundle Installer".

"Hosting Bundle Installer" is: .NET Core Windows Server Hosting bundle installs the .NET Core Runtime, .NET Core Library, and the ASP.NET Core Module. The module creates a reverse proxy between IIS and the Kestrel server on Windows platforms.

Sure, you have to follow this tutorial to deploy to IIS:

I would suggest you to do this:

  1. Publish your web application to desktop.

  2. Copy the folder to the server.

  3. Open cmd and run cd

  4. In cmd run dotnet webapplication.dll

  5. You should see that application is run and waiting for responses on localhost:port.

  6. Open browser and navigate there. It should work.

Otherwise, you will be able to see all the errors in the cmd window.

Need Your Help

Passing Multiple route params in Angular2

angular angular2-routing

Is it possible to pass multiple route params e.g. like below need to pass id1 and id2 to the component B

How to set character_set_database and collation_database to utf8 in my.ini?

mysql utf-8 character-encoding

I've googled a lot about this problem. To sum up, this is what my my.ini looks like: