iis 7 关闭详细错误报告会导致经典的 asp 错误
我很困惑为什么会发生这种情况。
当我关闭详细错误报告时,我收到内部服务器错误。当我打开它时,我的页面加载正常。
以前有人遇到过这种事情吗?
I am stumped as to why this is happening.
When I turn detailed error reporting off, I get internal server error. When I turn it on my page loads fine.
Has anyone ever come across this sort of thing before?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我怀疑您的脚本确实在某处引发了错误,并且该错误隐藏在 HTML 中的某处。
在有问题的页面上,再次打开详细错误,浏览到该页面,然后在浏览器中执行查看源代码,我打赌您会发现其中有一些不应该出现的内容,但不是由浏览器渲染。
例如:
如果我在 IIS 中打开详细错误,上面的 HTML 看起来渲染得很好,但如果我将其关闭,我会看到红色、白色和灰色的
500 - 内部服务器错误。
页面。查看以下任一字符串:
或
假设您没有更改站点 ASP 功能窗格中的
脚本错误消息
。I suspect your script does have an error being raised somewhere and the error is being hidden somewhere in your HTML.
On the page in question, turn on detailed errors again, browse to the page then do a View Source in your browser and I bet you'll find there's something in there that shouldn't be, but not being rendered by the browser.
For example:
If I turn on detailed errors in IIS the HTML above appears to render just fine but if I turn them off I get the red, white and grey
500 - Internal server error.
page.Look either of these strings:
or
This is assuming you haven't altered the
Script Error Message
in the site's ASP feature pane.