Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MVC 6 Hosted on IIS HTTP Error 500.19

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

like image 245
Mike U Avatar asked Feb 11 '16 22:02

Mike U


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 you fix HTTP Error 500.19 Internal Server Error the requested page Cannot be accessed because the related configuration data for the page is invalid?

The solution was to load Microsoft URL Rewriting from: iis.net/downloads/microsoft/url-rewrite. The test to determine that this was the issue was to edit my web. config file to comment out the <rewrite> section.

What is a 500.19 error?

HTTP Error 500.19 - Internal Server Error. The requested page cannot be accessed because the related configuration data for this page is invalid.


2 Answers

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.

like image 74
vefve Avatar answered Oct 05 '22 22:10

vefve


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

like image 44
Mike U Avatar answered Oct 06 '22 00:10

Mike U