bri189a Posted September 16, 2005 Posted September 16, 2005 Just curious how some of you other guys handle unhandled errors in your ASP.NET applications... 1. Just throw the error and show a custom error page? Or worse the default error page? 2. Do a stack trace and put it in a log, or db, or email it? (What I do; however in release mode doesn't do a lot of good since I have no line numbers) and then do #1 or something else? 3. Catch all errors and just do nothing and leave the user thinking something was accomplished that wasn't? I hope not. 4. Redirect to a start page? Not very user friendly. Reason I ask is I'm not really happy with my methods and wanted to do some personal research from the folks that visit here on what they do. Then while I wait on answer here I'll be Googling to see what suggestions I can find out there on the web? Quote
bri189a Posted September 17, 2005 Author Posted September 17, 2005 Enterprise Application Block v1.0 - didn't realize how much it had in it. :) Quote
joe_pool_is Posted September 17, 2005 Posted September 17, 2005 I know this probably isn't very professional, but I generally include a hidden Label control that I will write error messages to and display whenever my form experiences errors. Generally, I include error prone routines in a try-catch block, and use the Exception Message as the Label's text with the note to kindly inform the webmaster (me). Hopefully, that doesn't happen too often, though. Quote Avoid Sears Home Improvement
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.