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