I have a custom HTTP module for an ASP.NET MVC3 website that I'm loading from web.config:
<system.web> <httpModules> <add name="MyModule" type="MySolution.Web.MyHttpModule, MySolution.Web" /> </httpModules> </system.web>
The module is loaded correctly when I run the site from within the VS web server (the break point in my Init method is hit) but when I host it in IIS it seems to be ignored (the breakpoint is missed and the module's functionality is absent from the site). I have tried it on two separate IIS boxes with a similar result.
What am I doing wrong? Is there a setting I have to flick in enable IIS to load modules from a site's web.config?