Answered by:
Using httpModules

Question
-
Our solution for SharePoint 2007 include WebConfigModification that add httpModule to web.config of all SharePoint web applications. HttpModule used for collecting information about http-requests.I've tried to do the same for SharePoint 2010 (web.config was modified directly - without WebConfigModification). My implementation of IHttpModule, added by web.config is not loaded.Can I use httpModules in SharePoint 2010 or modules was blocked?Should I make additional actions to register my module, for example, add my assembly to some safe list?Friday, November 27, 2009 2:26 PM
Answers
-
Thanks for reply!I've fixed my problem. I moved the line with module definition from section <httpModules> to section <modules> and add attribute preCondition="integratedMode".
- Marked as answer by Paul AndrewMicrosoft employee Sunday, December 13, 2009 1:24 AM
Monday, November 30, 2009 9:43 AM
All replies
-
The reason could be that your application pool in IIS7 is running in Integrated Mode.
To fix it, read this post from Rick Strahl ("HttpModule and HttpHandler sections in IIS 7 web.config files")
and also the following post http://aabs.wordpress.com/2007/11/16/ihttpmodule-not-running-after-conversion-to-iis-7-and-net-35/
Serge Luca; blog: http://www.redwood.be Devoteam Belgium- Proposed as answer by Kevin-Chan Monday, March 1, 2010 2:31 AM
Sunday, November 29, 2009 5:44 PM -
Thanks for reply!I've fixed my problem. I moved the line with module definition from section <httpModules> to section <modules> and add attribute preCondition="integratedMode".
- Marked as answer by Paul AndrewMicrosoft employee Sunday, December 13, 2009 1:24 AM
Monday, November 30, 2009 9:43 AM -
Thanks for sharing. That resolved my problem as well!Thursday, February 25, 2010 11:18 PM
-
Thanks, solved my problem perfectly.Thursday, January 13, 2011 6:07 PM