I created an httpModule to block certain IP addresses. It runs fine locally but the httpModule is never called on my DASP server. I've added the following 2 sections to my config file: Code: <system.web> <httpModules> <add name="IpBlockingModule" type="IpBlocker" /> </httpModules> </system.web> Code: <system.webServer> <modules runAllManagedModulesForAllRequests="true"> <add name="IpBlockingModule" type="IpBlocker" /> </modules> </system.webServer> My DASP account is configured for: Net 4.0 / IIS7 (Integrated mode). The site also runs from a virtual directory but I don't think that should matter. I have spent many hours trying to resolve this and have run out of ideas (+patients!) so any help would be greatly appreciated. Thanks, Scott.
Never mind, I'm an idiot! I made a copy of my web.config file for testing and inadvertently misspelled the name of the file so when I copied it to the DASP server it was not being picked up by the IIS server. Yet another case of "DWI" - Developing While Intoxicated! BTW: Only the second code block for the <system.webServer> section is needed for Net 4.0 / IIS7 servers.