Geeks With Blogs

Michael Freidgeim's Blog MS .Net Development

There are a few articles about ASP.NET Exception Handling that I want to bookmark.

User Friendly ASP.NET Exception Handling -very good library, in particular for logging Unhandled Exceptions in ASP.NET Web Services. Minor disadvantage is that it uses propriatory logging, not Enterprise Library Logging Block.

Take Exception To Critical Errors With Custom Application Blocks shows how to use Enterprise Library to build an error-reporting framework and post them to remote web server.

Article Rich Custom Error Handling with ASP.NET   describes how to pass Exception to Custom Error Pages  using one of state objects: Application, Context, Cookies, and QueryString.

 I didn't understand why article stated, that Response.Redirect()  can't use Session as storage basket?.  Later I found(see my post Passing Exception details in Session to Custom Error page. ) that it is possible. 

I've noticed that Exception has Data property to keep any custom key/value pair. However Data is not included in ToString, and overide is required if you want to trace/log it.(see also Giving Exceptions the Extra Info They Need with Exception.Data)

Links to many other articles can be found in the CodeIdol article "Exception Handling"  

Consider to use Exceptions Visualizers

 

Posted on Tuesday, June 26, 2007 3:47 PM | Back to top


Comments on this post: ASP.NET Exception Handling links

# re: ASP.NET Exception Handling links
Requesting Gravatar...
That was an inspiring post,

They are all good and well writen article it's nice to have them all in one post

Thanks
Left by web development company on Aug 18, 2009 12:26 PM

Your comment:
 (will show your gravatar)


Copyright © Michael Freidgeim | Powered by: GeeksWithBlogs.net | Join free