Why can event handlers can only be bound to HttpApplication events during IHttpModule initialization
Posted
by Venemo
on Stack Overflow
See other posts from Stack Overflow
or by Venemo
Published on 2010-05-06T13:15:00Z
Indexed on
2010/05/06
13:18 UTC
Read the original article
Hit count: 427
This is just another "working in dev server, why not working in IIS" type question.
So, I created a nice DAL using NHibernate as described here. When creating an ISession, I hook up an event handler to the HttpApplication.EndRequest to take care of cleaning it up.
However, I deployed my site to IIS and it says:
Event handlers can only be bound to HttpApplication events during IHttpModule initialization.
Since when?
What for?
Why?
How can I bypass it?
© Stack Overflow or respective owner