HttpModule not firing when Session/Application ends

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I am having trouble with a HttpModule which is registered to handle the HttpApplication.Error event. All works well until I throw an error from within the Session_End or Application_End event handlers in the global.asax.cs file - the HttpModule event handler I attached to the Application.Error does not run under these circumstances! Can anyone explain why?

Thanks in advance,

Will
 
I know that the Session_OnEnd event didn't always fire in classic ASP.
Maybe Microsoft never resolved this issue. Sorry...

Neil
 
I have tested both Session_End and Application_End to see if this is the case, but they both execute just fine. The problem is that if you throw an error in them, the Application.Error event does not fire.

Thanks anyway.

Will
 
Back
Top