Get Detailed Error Messages Using IE/IIS7
December 28th, 2008 by Paul Sterley | Filed under In the Windows Box, Windows Server, Workstation OS.Situation: You are writing or debugging some web code, and the error you are seeing in the browser isĀ almost, but not quite, entirely useless. It may be pretty though.
Environment: IE6 or 7 on the workstation, Windows Server 2008 and IIS7 on the server.
The first place to look is the browser settings.
- Click the Tools menu (might have to press ALT first to see it).
- Click Internet Options.
- Go to the Advanced tab.
- Uncheck the box for “Show friendly HTTP error messages”.
The second place to look is in the Error Pages section of IIS:
- Open IIS Admin.
- Select a web site.
- Open the Error Pages tombstone (doesn’t it look like a graveyard of icons?).
- Click the extremely intuitive Edit Feature Settings link under Actions on the right side.
- In the Error Responses area, choose your preference.
It is “more secure” to leave the default settings. One argues that you can do your testing with the web browser on the local server, so you only need local requests to return useful error messages. However, you might wonder during your testing whether IE Enhanced Security, UAC, DEP, and other wonderful security settings that you have left on your server are interfering with the operation of your web application. For this reason, you may want to flip this over to “Detailed errors”, at least while you are working on the problem.
Finally, there is one more place to look.
I am uncertain whether this affects only classic ASP code, or ASP.NET as well, but here it is:
- Select a web site.
- Double-click the ASP tombstone.
- Click the “+” sign next to Debugging Properties.
- Change the “Send Errors to Browser” parameter to “True”.
That should do the trick. See how much easier debugging is now?
Tags: Debugging, Friendly HTTP Errors, IIS7

