简体   繁体   English

设置详细/客户错误消息问题,iis7 asp classic

[英]Setting detailed/customer error messages issues, iis7 asp classic

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. 基本上,当我将网站设置为自定义错误时,它将显示默认的500错误消息,但是当我随后将其设置为显示详细错误时,页面可以正常加载而不会出现错误。 Has anyone else come across this? 还有其他人遇到吗? How can I see what the error is? 如何查看错误是什么?

By default IIS7 intercepts HTTP status codes such as 4xx and 5xx generated by applications further up the pipeline. 默认情况下,IIS7会拦截应用程序生成的HTTP状态代码(例如4xx和5xx),这些代码会在管道的更深处传播。

In web.config replace the line 在web.config中替换行

<httpErrors errorMode="Detailed">

with

<httpErrors existingResponse="PassThrough" errorMode="Detailed">

IN IIS 在IIS中

  1. Open the IIS7 manager 打开IIS7管理器

  2. Select the Website and on its features view, double click on “Error Pages”. 选择网站,然后在其功能视图中,双击“错误页面”。

  3. Right click and select the “Edit Feature Settings…” or select the same from the Actions pane (in the right hand side) 右键单击并选择“编辑功能设置…”,或从“操作”窗格中选择相同的功能(在右侧)

  4. Select the “Detailed errors” radio button and click on OK 选择“详细错误”单选按钮,然后单击“确定”。

  5. Now, your client browsers will be able to see the detailed error messages. 现在,您的客户端浏览器将能够看到详细的错误消息。

ALSO... 也...

Click on the website in content view. 在内容视图中单击网站。 Go to "ASP" under the "Debugging Properties" make sure "Send errors to browser" is set to true. 转到“调试属性”下的“ ASP”,确保将“发送错误到浏览器”设置为true。

IN CONTROL PANEL 在控制面板中

Internet Options > Advanced (tab) > Un-tick "Show Friendly HTTP error messages" Internet选项>高级(选项卡)>取消选中“显示友好的HTTP错误消息”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM