14

Am getting HTTP Error 500.19 when accessing MVC 6 app in IIS on Windows 10.

In IIS I have set the App pool to 'No Managed Code'

The app is hosted in the root of a new Web Site.

I published the app using Visual Studio 2015 with the following settings.

Configuration : Debug Target DNX Version: dnx-clr-win-x64.1.0.0-rc1-update1

The web.config is the boilerplate provided by Visual Studio

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <handlers>
      <add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified"/>
    </handlers>
    <httpPlatform processPath="%DNX_PATH%" arguments="%DNX_ARGS%" stdoutLogEnabled="false" startupTimeLimit="3600"/>
  </system.webServer>
</configuration>

Any ideas what is going wrong?

Thanks

Mike

Frederik Struck-Schøning
  • 12,981
  • 8
  • 59
  • 68
Mike U
  • 2,901
  • 10
  • 32
  • 44

3 Answers3

18

For RC2 and above, HttpPlatformHandler has been replaced by ASP.NET Core Module

Install the new module from here.

The announcement can be found here.

vefve
  • 181
  • 2
  • 7
7

Figured it out, I needed to install the httpplatformhandler http://www.iis.net/downloads/microsoft/httpplatformhandler

Mike U
  • 2,901
  • 10
  • 32
  • 44
  • 1
    I followed the steps here https://docs.asp.net/en/latest/publishing/iis.html I had exactly the same error on Windows Server 2012 IIS 8.5. Then I set up HttpPlatform handler. And it worked. Thanks – oneNiceFriend May 17 '16 at 11:34
  • FYI I installed httpplatformhandler but didn't work but after installing ASP.NET Core Module it started work. My application is Asp.net core – Shinya Koizumi Jan 22 '17 at 19:01
  • 1
    Hi powerfade917 , I have also same problem, I have created api project in asp.net core, and it works well on localhost. But when I have published my this .net api project, I am not be able to access it. Gives me this error message "HTTP Error 500.19 - Internal Server Error". Does I missing something or Need to do any configuration in appsetting or web.config file ? – Herin Feb 17 '17 at 11:28
  • I installed the platform handler, hit CTRL+F5 in my browser and still I get the error. – Thanasis Ioannidis May 17 '17 at 08:22
3

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.

Sadjad Khazaie
  • 2,102
  • 22
  • 22