gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 02:18:40 27 4
gpt4 key购买 nike

我在 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com