Forum Moderators: open

Message Too Old, No Replies

500 Errors - What is returned?

         

txbakers

9:01 pm on May 12, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When a 500 error is thrown, and "Friendly" HTTP error messages are turned off, showing the real error, what is returned, and how do I capture that?

I made a custom 500 error screen, and would like to display that "non-friendly" error on that screen.

Does anyone know the server variables for that so I can display?

THANKS!

Ocean10000

1:04 am on May 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Quick Question are you using a static 500 Error Page, or a dynamic one done in Asp.Net, Asp Classic?

If you are doing it in Asp.net these might be of some help to you.
MS Support Article How to create custom error reporting pages in ASP.NET by using Visual C# .NET [support.microsoft.com]
MSDN - customErrors Element [msdn.microsoft.com]
Code Project - Custom Errors in ASP.NET [codeproject.com]

txbakers

1:06 pm on May 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ASP CLassic. I want to use a custom page and show the dynamic error.

Ocean10000

1:43 pm on May 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This KB Article may be of help for Classic Asp
Best practices with custom error pages [support.microsoft.com]

500-100.asp [devguru.com] source code for the standard Asp Classic Error page.

txbakers

3:06 am on May 14, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks, I'll try that too.