I have a website setup in IIS with one web.config set at the root for many sub-application virtuals (about 35), some of which use their own unique overrides/configurations.
I have two HttpModules that I would like to implement for all of the sub-apps at once. Without using the GAC, is there a way to specify the implementation in web.config so that these modules can apply to all sub-apps without re-compiling module code into each sub-application? Can I store the HttpModule assembly somewhere in the site structure that it can be utilized by all sub-apps?
It is possible to register a http module in the root web.config (
system.webServer/modulessection). The module must have a strong name (must be signed):Now IIS expects that the module is in the bin directory (or in GAC).
dependentAssemblysection instructs IIS where can be the assembly file found: