MVC 6 托管在 IIS HTTP 错误 500.19 上 [英] MVC 6 Hosted on IIS HTTP Error 500.19
问题描述
在 Windows 10 上的 IIS 中访问 MVC 6 应用程序时出现 HTTP 错误 500.19.
Am getting HTTP Error 500.19 when accessing MVC 6 app in IIS on Windows 10.
在 IIS 中,我已将应用程序池设置为无托管代码"
In IIS I have set the App pool to 'No Managed Code'
该应用托管在新网站的根目录中.
The app is hosted in the root of a new Web Site.
我使用具有以下设置的 Visual Studio 2015 发布了应用程序.
I published the app using Visual Studio 2015 with the following settings.
配置:调试目标 DNX 版本:dnx-clr-win-x64.1.0.0-rc1-update1
Configuration : Debug Target DNX Version: dnx-clr-win-x64.1.0.0-rc1-update1
web.config 是 Visual Studio 提供的样板
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>
知道出了什么问题吗?
谢谢
迈克
推荐答案
想通了,我需要安装 httpplatformhandlerhttp://www.iis.net/downloads/microsoft/httpplatformhandler
Figured it out, I needed to install the httpplatformhandler http://www.iis.net/downloads/microsoft/httpplatformhandler
这篇关于MVC 6 托管在 IIS HTTP 错误 500.19 上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!