Last post Jun 02, 2012 01:53 PM by kyle.wilt
Jun 02, 2012 01:53 PM|kyle.wilt|LINK
First off, this is for II7.5 in integrated pipeline mode. The runAllManagedModulesForAllRequests setting is false and the precondition on all modules is set to managedHandler. We have forms authentication enabled. The site is an MVC3 site (although I doubt
it's relevant since the mvc3 stack doesn't appear to come into play yet when this problem occurs).
I have a module that is hooking using the AddOnAuthenticateRequestAsync method so we can do some I/O during our authentication work. This part seems to be working fine on its own however if we don't also hook the BeginRequest event on the HttpApplication
(synchronous version) the request never finishes processing.
Looking at the trace logs show that the async handler completes and the other modules continue processing until it hits the start of the DefaultAuthentication module. Then the log ends. Seems like it's hanging in the DefaultAuthentication module or the trace
is just stopping there for some reason. If I add a hook to the BeginRequest event the problem doesn't occur.
There are 2 other modules configured for the site., they are WSFederationAuthenticationModule and SessionAuthenticationModule from the Microsoft.Identity assembly. However I can comment these two modules out and the same problem still occurs.
One other note, this async handler is the only async handler in the chain (I think ).