Setting detailed/customer error messages issues, iis7 asp classic

本秂侑毒 提交于 2019-12-31 05:41:19

问题


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?


回答1:


IN IIS

  1. Open the IIS7 manager

  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.

IN CONTROL PANEL

Internet Options > Advanced (tab) > Un-tick "Show Friendly HTTP error messages"




回答2:


By default IIS7 intercepts HTTP status codes such as 4xx and 5xx generated by applications further up the pipeline.

In web.config replace the line

<httpErrors errorMode="Detailed">

with

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


来源:https://stackoverflow.com/questions/5910147/setting-detailed-customer-error-messages-issues-iis7-asp-classic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!