Home arrow ASP arrow Page 7 - Replacing the Error 500 ASP Page
ASP

Replacing the Error 500 ASP Page


This article looks at how error information is stored and obtained in ASP 3.0 - the ASPError object, this information is then used in the creation of a new, better error page.

Author Info:
By: Wrox Team
Rating: 5 stars5 stars5 stars5 stars5 stars / 91
January 20, 2003
TABLE OF CONTENTS:
  1. · Replacing the Error 500 ASP Page
  2. · The ASPError Object
  3. · Editing the ASP Error Page
  4. · Extending the Functionality
  5. · E-Mailing Errors
  6. · SourceSafe Integration
  7. · Conclusion

print this article
SEARCH DEVARTICLES

Replacing the Error 500 ASP Page - Conclusion
(Page 7 of 7 )

In this article, the ASPError object that was introduced with ASP 3.0 was discussed. This was then related to the use of custom error pages - more specifically the Error 500-100 error page that is displayed when an error occurs on the server during the execution of the script.

A comparison of the functionality between the page that is displayed in ASP 2.0, 3.0, and .NET was made, concluding with a re-implementation of the ASP.NET error page to allow for more rapid debugging.

The re-implementation of the ASP.NET page was followed with coverage on how to use error pages for two different reasons - alerting the end-user to errors, and allowing a developer to have the necessary information to correct such errors. With this information, a less technical error page was developed for end-users before adding further functionality to the development error page.

This functionality included syntax highlighting of the code containing errors, e-mailing of errors to development staff, and the ability to edit and correct the code in-situ. Source-safe integration was then added to allow for the usage of such features in enterprise scale environments.

Finally, the re-use and extension of the code was dealt with - including integration with a bug-tracking system and the replacement of the text-editor with a full-featured one. The result of this article is a replacement for the standard IIS Error 500 page that:
  1. Makes it simpler to identify errors
  2. Makes it much simpler to correct these errors
  3. Allows for more appropriate error messages to be displayed to end-users of the system


The finished error page created in this article
The finished error page created in this article


If you have any questions or comments about this article please post them here.
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

blog comments powered by Disqus
ASP ARTICLES

- Central Scoreboard with Flash and ASP
- Calorie Counter Using WAP and ASP
- Creating PGP-Encrypted E-Mails Using ASP
- Be My Guest in ASP
- Session Replacement in ASP
- Securing ASP Data Access Credentials Using t...
- The Not So Ordinary Address Book
- Adding and Displaying Data Easily via ASP an...
- Sending Email From a Form in ASP
- Adding Member Services in ASP
- Removing Unconfirmed Members
- Trapping HTTP 500.100 - Internal Server Error
- So Many Rows, So Little Time! - Case Study
- XDO: An XML Engine Class for Classic ASP
- Credit Card Fraud Prevention Using ASP and C...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials