Catching unhandled exceptions using HttpModules

A

Amil Hanish

I am using VS 2005 and .NET 2.0. I am trying to catch exceptions in outside
the context of a page request (i.e. timer or background thread). I am
following the MS instructions at:

http://support.microsoft.com/?id=911816

but I still my handler code doesn't seem to be called no matter what I try.
Everything seems ok...HttpModule is in the GAC and I know it is available;
if I throw an exception in the context of a page request, all is fine and my
handler is called. But, if I throw an exception from a ThreadPool then my
handler is not called and I get a .NET debug dialog box popping up. I've
also tried both debug and release versions of both my HttpModule and the web
app.

Anyone have any ideas or have done this before?

Amil
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top