MVC 6 Hosted on IIS HTTP Error 500.19

青春壹個敷衍的年華 提交于 2019-12-17 18:53:34

问题


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


回答1:


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.




回答2:


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




回答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":

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.



来源:https://stackoverflow.com/questions/35351198/mvc-6-hosted-on-iis-http-error-500-19

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!