IIS8 Win8 and runAllManagedModulesForAllRequests="true"

David Sulpy picture David Sulpy · Sep 19, 2012 · Viewed 59.8k times · Source

I am attempting to run an application in IIS8 that has the following in the config:

<modules runAllManagedModulesForAllRequests="true" />

IIS8 is giving me an error that says...

This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".

I'm guessing by the error and a quick SO search that there is some higher level security setting that's preventing that line from being allowed. Any ideas?

Answer

taky.kim picture taky.kim · Sep 29, 2012

I've solved the same problem by installing the window features "Internet Information Service/World Wide Web Service/Application Development/ASP.NET x.x" in the Control Panel of Windows8. If you want to setting on Windows Server 2012, the following link gives you hint. http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-using-aspnet-35-and-aspnet-45

hope that it works out.