Take the 2-minute tour ×

Is there any safe way to handle all exceptions in a .net website using c# and asp? I read a lot from different webistes and what i found is to use one of those:

  1. AppDomain.CurrentDomain.UnhandledException Event
  2. Application.ThreadException Event

    But a lot of people are arguing how safe is to handle all exceptions together(out of memory,stackoverflow exception etc).
    I would appreciate any kind of help!

share|improve this question
What do you mean by safe, and what do you want to do when you 'handle' them ? –  Symeon Apr 30 '12 at 10:46

2 Answers 2

up vote 0 down vote accepted

have a look at postsharp http://www.sharpcrafters.com/solutions/exception

share|improve this answer

This article might provide you with more information on global error handling within asp.net:



share|improve this answer

Your Answer


