Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP Error 500.19 when publish .net core project into iis with 0x80070005

error

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.

like image 860
Ali Jahanbin Avatar asked Nov 25 '16 12:11

Ali Jahanbin


People also ask

How do I fix HTTP Error 500.19 internal server error IIS?

The error message itself points out the location of the duplicate entries. To resolve this problem, delete the duplicate entry in the ApplicationHost. config file for the authorization rule.

How do I know if asp net core module is installed?

To determine the version of the installed ASP.NET Core Module: On the hosting system, navigate to %PROGRAMFILES%\IIS\Asp.Net Core Module\V2 .

What is ASP Net core module?

The ASP.NET Core Module (ANCM) is a native IIS module that plugs into the IIS pipeline, allowing ASP.NET Core applications to work with IIS. Run ASP.NET Core apps with IIS by either: Hosting an ASP.NET Core app inside of the IIS worker process ( w3wp.exe ), called the in-process hosting model.


2 Answers

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: https://weblog.west-wind.com/posts/2016/Jun/06/Publishing-and-Running-ASPNET-Core-Applications-with-IIS

Here is the page from Microsoft to find the download: https://docs.microsoft.com/en-us/aspnet/core/publishing/iis?tabs=aspnetcore2x

like image 93
Enkode Avatar answered Sep 19 '22 19:09

Enkode


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

Go to microsoft site "https://www.microsoft.com/net/download/dotnet-core/runtime-2.1.0-rc1" and install "Hosting Bundle Installer":

enter image description here

Before installing this you have to install the right version of runtime: https://www.microsoft.com/net/download/dotnet-core/runtime-2.1.0-rc1 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.

like image 35
Sadjad Khazaie Avatar answered Sep 17 '22 19:09

Sadjad Khazaie