Home » .Net » Classic ASP » Internet Explorer Friendly Error Messages: Not So Friendly After All

Internet Explorer Friendly Error Messages: Not So Friendly After All

Categories

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Disclaimer

© Justin Cooney - Programming Tips (http://jwcooney.com), 2013. You may copy/use any of the CODE found in my articles at your own risk. The code I provide is meant to be illustrative of a point and is not meant to be used in a live application. I do NOT consent to duplication of my articles. Specifically, you may not copy entire articles and publish them on your own site even if you provide a link back to my site.

If you are a programmer trying to debug an application, then the last thing you want to see is a so-called Friendly Error Message rather than what actually happened.

I personally don’t think that this has any benefit even to non-programmers since they still just see a confusing warning such as a HTTP 500 error code along with a generic explanation that something terrible has happened. As you can probably imagine, this is fairly confusing to everyone involved, but especially to a programmer trying to find out what is going wrong. On the plus side, it does encourage some security by hiding the open display of an application’s error codes. But relying on a n IE obfustication setting probably won’t stop any hacker interested in learning more about your system.

How to get rid of Friendly Error Messages

If you are a programming and are seeing generic error messages in IE rather than what is actually happening, then you will be happy to know that this can be changed by a simple switch in your Internet Explorer option settings. The location of the setting has not changed since IE 6 and remains the same in IE 8 and IE 9.

To disable “Friendly Error Messages”, you need to find the checkbox labelled Show Friendly HTTP Error Messages. You can find this as follows:

  1. Open an instance of Internet Explorer
  2. On the top menu bar locate the Tools menu item and expand this menu item
  3. In the expanded list of options click the option titled: Internet Options
  4. You will then see the Internet Options popup window along with tabs at the top.
  5. Click on the top right tab titled Advanced
  6. On the Advanced tab you will see a list of checkboxes organized under sections.
  7. Near the top of the list locate the section titled Browsing
  8. Scroll down to near the end of the Browsing section until you see the checkbox labelled Show friendly HTTP error messages
  9. Uncheck the checkbox for the error messages
  10. Click the Ok or the Apply button

Congratulations, you should now be able to run a Web application and see the correct error message output. Although this is quite a simple feature to adjust, if you don’t know about it, it can add significant time to tracking down application problems.

Resources:

For some more information on the various error codes and HTTP error messages take a look at this article located at windows.microsoft.com

About these ads

2 Comments

  1. there is also a trick at the server side if I remember well, to make your custom error page a certain size and up in bytes

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 1,409 other followers

%d bloggers like this: