All your uncaught errors go though the Global.asax file
void Application_Error(object sender, EventArgs e)
{
errors ApplicationError = new errors();
ApplicationError.LogApplicationError(Error.GetType().ToString(),Request.Path.ToString(),
Request.Url.ToString(), Error.Source.ToString(), Error.Message.ToString(),
Error.StackTrace.ToString(), Error.TargetSite.ToString());
Server.ClearError();
ApplicationError.Dispose();
Server.Transfer("error.aspx?Message=" + Error.GetType().ToString(), false);
}
Here you can process that error how you see fit. We try to write our
unhandled errors to an SQL log table. If this fails, we contact to SMTP and
see the error report directly to the programmer. The parameter list above is
the more common items you can return.

Signature
JP
.NET Software Developer
> Hi Guys
>
[quoted text clipped - 9 lines]
> Regards
> Yeghia
Scott M. - 10 Oct 2006 22:54 GMT
That's *if* you are talking about an ASP.NET web applicationa. The OP
didn't specify.
> All your uncaught errors go though the Global.asax file
>
[quoted text clipped - 32 lines]
>> Regards
>> Yeghia
Yes it is possible, look over here for some examples on how to have an
handler catch all the unhandled exceptions :
http://www.codeproject.com/dotnet/unhandledexceptions.asp
http://www.codeproject.com/dotnet/ExceptionHandling.asp
http://www.codeproject.com/dotnet/SafeForm.asp
However be careful of a few things :
-behaviour might differ if you run your program with or without the
debugger
-behaviour might differ if you have visual studio installed or not on
the computer
-Make sure that it works with different forms (some people seems to
have problems : unhandled exceptions of one form are catch and
exceptions from another form are not)
yeghia (sosy) schreef:
> Hi Guys
>
[quoted text clipped - 9 lines]
> Regards
> Yeghia