Programmatically register HttpModules at runtime
It has to be done at just the right time in the HttpApplication life cycle which is when the HttpApplication object initializes (multiple times, once for each instance of HttpApplication). The only method where this works correct is HttpApplication Init(). To hook up a module via code you can run code like the following instead … Read more