Home > Networking Tips > Network Engineering > HTTP error code troubleshooting, Part 3: Disabling IE friendly error messages
Networking Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

NETWORK ENGINEERING

HTTP error code troubleshooting, Part 3: Disabling IE friendly error messages


Brien Posey
12.01.2008
Rating: -3.75- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


So far in this article series, I have shown you a few different methods for getting to the bottom of an HTTP error message. In this article, I want to conclude the series by showing you one last technique for dealing with an HTTP error message.

Friendly errors
One reason why HTTP errors are so hard to troubleshoot is that Microsoft likes to hide a lot of the details about the error message from us. I don't think that this information is being obscured for security reasons or because Microsoft wants to withhold information from us; rather, it seems to be an effort to help people who are less computer literate.

For example, one of the most common types of HTTP error message is the 404 error. To see what a 404 error looks like, just go to your favorite website and enter an invalid URL. When you do, you will most likely see an error message like the one that is displayed in Figure A.

Figure A
A 404 error is one of the most common types of HTTP errors.
[IMAGE]
Click the image for a larger view.

As you can see in the figure, the fine print tells you that a 404 error has occurred, and it even tells you that the error occurred because a file was not found. That's really about the only technical information we get, though. The rest of the information on the page is there to tell novices how they might be able to get around the error message.

Sometimes friendly error messages are dressed up a bit. For example, if you go to my website (www.brienposey.com) and enter an invalid URL, you will see a page similar to the one shown in Figure B. This is still considered a friendly error message. I have simply replaced Microsoft's generic error message with a message of my own. Many other sites use the same technique.

Figure B
Some websites use custom friendly errors.
[IMAGE]
Click the image for a larger view.

Whether a site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Network Engineering
Windows Server 2008 IP routing configuration: Static and dynamic RIPv2
Understand Windows tracert output to troubleshoot network connectivity
Using tracert and TTL to troubleshoot network connectivity problems
10 Gigabit Ethernet interconnect solutions: Investigate carefully before choosing
Optimization of the data center with 10 Gigabit Ethernet
Converged Enhanced Ethernet: New protocols enhance data center Ethernet
Test your TCP/IP protocol stack to troubleshoot network connectivity
Checking IP configuration to troubleshoot Windows network connectivity
Using ping command for troubleshooting Windows network connectivity
Top Windows Management Instrumentation (WMI) scripting books, websites

Working With Servers and Desktops
Windows Server 2008 IP routing configuration: Static and dynamic RIPv2
Understand Windows tracert output to troubleshoot network connectivity
Test your TCP/IP protocol stack to troubleshoot network connectivity
Checking IP configuration to troubleshoot Windows network connectivity
Physical network security key to fighting low-tech threats
Using ping command for troubleshooting Windows network connectivity
Bandwidth allocation: How can I give a download limit for each user?
How to use Netsh WLAN to configure Windows Server 2008 and Windows Vista wireless connections from the CLI
How to upgrade Windows Server 2003 to Server 2008
Top Windows Management Instrumentation (WMI) scripting books, websites

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
four-way server  (SearchNetworking.com)
mail user agent  (SearchNetworking.com)
netstat  (SearchNetworking.com)
Technical Office Protocol  (SearchNetworking.com)
Telnet  (SearchNetworking.com)
two-way server  (SearchNetworking.com)
virtual network adapter  (SearchNetworking.com)
virtual network computing  (SearchNetworking.com)
virtual systems management  (SearchNetworking.com)
VxWorks  (SearchNetworking.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


uses a generic or custom friendly error message, you probably won't get a lot of technical information about the problem from it. Fortunately, there is something you can do. Internet Explorer contains an option that you can use to display the real error message instead of the friendly error message.

The exact method of doing this varies from one version of Internet Explorer to another, but here's how it's done in Internet Explorer 7. Choose the Internet Options command from the Tools menu. When Windows displays the Internet Options properties sheet, go to the properties sheet's Advanced tab. Finally, deselect the Show Friendly HTTP Error Messages check box, located in the Browsing section. When you're done, click OK.

When disabling friendly error messages does nothing
After you disable the friendly HTTP error messages, you may find that the error pages still look the same. A couple of things can cause this. For starters, if you are looking at a 404 error, the error message is typically going to look the same because there really isn't anything to report except that the requested file was not found.

Another reason why an error may not look any different than before is that Internet Explorer may not actually be making a connection to the website. For example, if your Internet connection is down, you will get a 404 error message whether the page you requested actually exists or not.

Another common reason for continuing to receive generic error messages is that the requested page may be cached. Try emptying the browser cache and then requesting the page again.

If you own the website that is having problems and that website is running on IIS 7, try accessing the site locally, directly from the server console. Doing so will ensure that you receive a detailed error message. If a site is coded using ASP.net, you may end up receiving ASP's custom errors instead of the detailed messages that you are interested in. If this happens, you can fix the problem by temporarily embedding the following code onto the page that you are troubleshooting:

‹system.web›
‹custom errors mode="Off" /›
‹/system.web›

Conclusion
In this article, I have explained how you can disable Internet Explorer's friendly error messages. I then went on to talk about a couple of reasons why you may continue to see friendly error messages even when you have disabled friendly error messages in your browser.

About the author:
Brien M. Posey, MCSE, is a Microsoft Most Valuable Professional for his work with Windows 2000 Server and IIS. Brien has served as CIO for a nationwide chain of hospitals and was once in charge of IT security for Fort Knox. As a freelance technical writer, he has written for Microsoft, CNET, ZDNet, TechTarget, MSD2D, Relevant Technologies and other technology companies. You can visit Brien's personal website at www.brienposey.com.


Rate this Tip
To rate tips, you must be a member of SearchNetworking.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Networking Solutions for Business

Alcatel-Lucent Network Business Communications Solutions

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts