ASP.NET exceptions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to automatically log all exceptions to the machine event log?

When using Enterprise Library Exception Management Application Block you
need to catch each exception in code and rethrow it. I prefer to catch
everything in one place and write it to the event log.
 
You can use the global.asax to capture exceptions. The problem is you cannot
return to the page you were on at the state you were in without completely
reinventing the wheel. As there are many exceptions you can handle at the
page level and still give a decent user experience, this is not the best
tactic, at least not in most situations.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
 
Back
Top