Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom error page (500 vs 500.100)

Status
Not open for further replies.

roblasch

Programmer
Dec 30, 2000
168
US
I have an asp custom error page set up for the 500-100 error. It gathers up info and enters into database. Then it sends me an email. My question is this ... should I be using this page for the basic 500 error and the other 500 errors as well? Will I still get useful information from the asp lasterror collection? I can't seem to find much info on this subject, except that 500-100 is for asp errors. Any and all help is appreciated. Thanks.
 
This is interesting, I've never actually had to use it for 500 errors since it's really common to get such errors. IT can be a number of things from modification rights to page script errors. usually I wouldnt put my own page up there unless i'm redirecting for users browsing for directories. since the regular error messages will work well if you ever encounter a problem with an asp web page.
 
Well ... I keep getting informed of this error when users are trying to edit records in a database through an asp page:

HTTP 500 - Internal server error
Internet Explorer
I have the custom pages set up for the 500-100, but this error is not being redirected. But I am wondering if I can get any more information anyway. Am I correct that this is NOT an asp error? Is there any way to find more specifics about what is causing it?
 
yes actually what u can do if u have any errors in your script is use netscape or a mozilla type browser which displays the error and the line number
 
Actually, you should use a custom 500 error page rather than rely on the browser to show the error and line number. You can use the Request.ServerVariables collection to gather all information about the error, and then send that in the email to you.

That way, the end user has a professional user-friendly screen that displays (you can even include links to areas of the website, help email links, etc.), and you get all the juicy details via email. If you want to be really fancy, you can even email it via text messaging to your cell phone, etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top