IIS 站点向浏览器发送错误详细信息需要什么? [英] What is required for an IIS site to send error details to the browser?
本文介绍了IIS 站点向浏览器发送错误详细信息需要什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 IIS 7.5 上运行的 ASP Classic 站点上收到服务器错误.
I am receiving a Server Error on an ASP Classic site running on IIS 7.5.
我已将向浏览器发送错误"设置为 True
,但我仍然收到以下错误屏幕:
I have "Send Errors To Browser" set to True
, however I still receive the following error screen:
推荐答案
IIS 正在劫持您的经典 ASP 应用程序的响应.在您的 web.config
文件中确保已配置以下内容:
IIS is hijacking your classic ASP app's response. In your web.config
file ensure that the following is configured:
<configuration>
<system.webServer>
<httpErrors existingResponse="PassThrough"/>
</system.webServer>
</configuration>
还要确保您在 IIS 管理器中为您的站点启用了 ASP 配置功能中的向浏览器发送错误":
Also make sure that you've enabled "Send Errors To Browser" in the ASP configuration feature for your site in IIS manager:
这篇关于IIS 站点向浏览器发送错误详细信息需要什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文