我试图发布我的MVC 6 Beta 8应用程序。我能够成功发布到Azure,但是当我尝试将它发布到ASPHostPortal时,我得到了500错误。在IIS上运行MVC 6 Beta 8应用程序
所以我试图发布应用程序到本地IIS,也失败了。首先,我发现我需要安装HttpPlatformHandler(否则IIS无法加载web.config)。但即使在那之后,我得到了502.3的错误。
HTTP Error 502.3 - Bad Gateway
There was a connection error while trying to route the request.
此外,在事件日志中我可以看到从HttpPlatformHandler错误1000不带任何说明。但它说“进程'0'未能启动。端口= 13679,错误代码='-2147024894'。”
stdout.log已创建,但为空。
这里是我的web.config:
<configuration>
<system.webServer>
<handlers>
<add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified"/>
</handlers>
<httpPlatform processPath="..\approot\web.cmd" arguments="" stdoutLogEnabled="true" stdoutLogFile="stdout.log" startupTimeLimit="3600"></httpPlatform>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true" />
</system.webServer>
<system.web>
<customErrors mode="Off" />
<compilation debug="true" />
</system.web>
</configuration>
我在哪里何去何从?
http://docs.asp.net/en/1.0.0-beta8/publishing/iis.html –
关闭当然,我做了所有这些,但有这个错误。本文仍提到WebListener,它不再存在于MVC6 Beta 8中。文章未更新到Beta 8。 –
在[问题和问题](https://github.com/)中有与Azure/IIS相关的注释aspnet/Hosting/issues/364)关于beta8更新。他们可能会帮助 –