设置详细/客户错误消息问题,iis7 asp classic [英] Setting detailed/customer error messages issues, iis7 asp classic
本文介绍了设置详细/客户错误消息问题,iis7 asp classic的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法在任何地方找到类似的问题.基本上,当我将站点设置为自定义错误时,它会显示默认的 500 错误消息,但是当我将其设置为显示详细错误时,页面加载正常而没有错误.有没有其他人遇到过这个?我怎样才能看到错误是什么?
I haven't been able to find a similar problem anywhere. Basically when I set the site to custom errors it displays the default 500 error message, however when I then set it to show detailed errors the page loads fine without error. Has anyone else come across this? How can I see what the error is?
推荐答案
默认情况下,IIS7 会拦截应用程序生成的 HTTP 状态代码,例如 4xx 和 5xx.
By default IIS7 intercepts HTTP status codes such as 4xx and 5xx generated by applications further up the pipeline.
在 web.config 中替换行
In web.config replace the line
<httpErrors errorMode="Detailed">
与
<httpErrors existingResponse="PassThrough" errorMode="Detailed">
这篇关于设置详细/客户错误消息问题,iis7 asp classic的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文