IIS7 : HOW TO enable the detailed error messages for the website while browsed from for the client browsers?

In IIS 7, you can control the detailed error messages being sent to the clients. By default, the detailed error messages can be viewed only by browsing the site from the server itself.

But, this is dangerous because Detailed errors may contain about the inner workings of your web-site. We should allow only trusted persons to see the detailed error messages, that's why it is configured default to be viewable only from the server.

Example : For a 404.0 error, if the detailed error message is not enabled for the website, then the users will see the following on their browsers:

image

Server Error

-------------------------------------------------------------------------

HTTP Error 404 - File or directory not found.

If the web browser is installed on the same physical machine as IIS is installed on, the error message may resemble the following:

Server Error in Application "<application name>"

--------------------------------------------------------------------------

HTTP Error 404.0 - Not Found

This will be followed by HRESULT, possible cause and resolutions sections.

If you want to enable this detailed error message to be shown on the clients as well, then you need to change the setting in the IIS7 manager.

Follow the below steps for the same:

1. Open the IIS7 manager

2. Select the Website and on its features view, double click on “Error Pages”.

image

3. Right click and select the “Edit Feature Settings…” or select the same from the Actions pane (in the right hand side)

image

4. Select the “Detailed errors” radio button and click on OK

image

5. Now, even your client browsers will be able to see the detailed error messages.

This article gives more information on this detailed error messages with IIS7.

Hope this helps!

学校  See Also:

How to call EXE from IIS 7.0 or 7.5?

https://www.verypdf.com/wordpress/201312/how-to-call-htmltools-exe-from-iis7-5-how-to-show-detailed-log-message-in-iis-7-5-how-to-set-execute-permission-in-iis-7-5-40167.html

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Random Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!