ASP.NET exceptions

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.
 
C

Cowboy \(Gregory A. Beamer\)

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!
*************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top