Orvado DNS Error Handling Script
August 28, 04 by kenrichToday I fixed a few bugs in my site (Orvado DNS) with the help of my fancy error handling script. I have a custom URL defined (in IIS) that is loaded whenever an IIS server error occurs (error code: 500). From this script I can enumerate all of the Request.ServerVariables and place these in an e-mail that gets sent to myself. Along with this, I send the error information that includes the line number and error message that occurred.
Although this doesn’t catch every single error that can possibly be thrown by the server, it does track down some particularly nasty errors that I otherwise would have been oblivious to. It basically makes it so that all the users that come to your site act like testers and debuggers and will help get your site running smooth in no time.
If you are ambitious, you can setup your ASP error handling script to send an e-mail to a paging service that will page you the instance a script error occurs. This will allow you to provide immediate customer support to your web visitors and it might even help you learn when your site has been taken down by a malicious hacker. Trust me, I’ve been running a script like this for two years and it is invaluable for tracking down and fixing bugs.