iis - IIS 站点向浏览器发送错误详细信息需要什么?

标签 iis iis-7 asp-classic iis-7.5 windows-server-2008-r2

我在 IIS 7.5 上运行的 ASP Classic 站点上收到服务器错误。

我将“向浏览器发送错误”设置为 True ,但是我仍然收到以下错误屏幕:
500 - Internal server error.  There is a problem with the resource your are looking for, and it cannot be displayed.

最佳答案

IIS 正在劫持您的经典 ASP 应用程序的响应。在您的 web.config文件确保配置了以下内容:

<configuration>
    <system.webServer>
        <httpErrors existingResponse="PassThrough"/>
    </system.webServer>
</configuration>

还要确保在 IIS 管理器中为站点的 ASP 配置功能启用了“将错误发送到浏览器”:

enter image description here

enter image description here

关于iis - IIS 站点向浏览器发送错误详细信息需要什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6324801/

相关文章:

asp.net - 如何使 .svc 文件写入 asp.net Trace.axd

c# - 窗体身份验证之上的 ASP.NET MVC Windows 身份验证

asp.net-mvc - 如何发布 ASP.NET MVC 网站

c# - MySql 使用旧密码进行身份验证时出错

visual-studio-2008 - Visual Studio 2008是否支持经典的ASP开发?

.net - aspnet_regiis i - 为什么我需要使用它?

c# - 在 IIS Express 或其他 WebServer 上部署 ASP.NET MVC 应用程序?

iis-7 - ERROR_DESTINATION_NOT_REACHABLE : Web deployment task failed

Powershell - 使用共享证书添加 SSL 绑定(bind)

crystal-reports - 无法更改 Crystal reports 9 中的数据源