Catching unhandled exceptions using HttpModules

Discussion in 'ASP .Net' started by Amil Hanish, Apr 13, 2006.

  1. Amil Hanish

    Amil Hanish Guest

    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
    Amil Hanish, Apr 13, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. terry

    Unhandled Exceptions & Framesets

    terry, Jul 2, 2003, in forum: ASP .Net
    Replies:
    5
    Views:
    415
    Bassel Tabbara [MSFT]
    Jul 3, 2003
  2. Daniel
    Replies:
    8
    Views:
    5,738
    Daniel
    Jan 24, 2005
  3. Amil Hanish
    Replies:
    0
    Views:
    291
    Amil Hanish
    Apr 18, 2006
  4. DamienS

    Catching Session start in HTTPModules

    DamienS, Jul 1, 2008, in forum: ASP .Net
    Replies:
    4
    Views:
    992
  5. Warren Tang
    Replies:
    1
    Views:
    861
    Warren Tang
    Sep 23, 2008
Loading...

Share This Page