如何解决外部主机服务器上的 HTTP 错误 500.19

How do I solve HTTP Error 500.19, on External Host Server

我在本地机器上遇到这个错误,我能够授予文件权限,但是如何在我的主机服务器上解决这个错误

我试图编辑web.config,但我仍然有同样的错误

<configuration>
<system.web>
  <customErrors mode="Off"/>  
</system.web>
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true"/>

<handlers>
  <add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
</handlers>
<httpPlatform processPath="..\approot\web.cmd" arguments="" stdoutLogEnabled="true" stdoutLogFile="..\logs\stdout.log" startupTimeLimit="3600"></httpPlatform>
  </system.webServer>
</configuration>

您的主机可能还没有安装 HttpPlatformHandler。与他们交谈而不是在这里。

[更新:对于 RC2 及更高版本,需要一个新模块而不是 HttpPlatformHandler,https://github.com/aspnet/Announcements/issues/164]