'IIS8 Win8 and runAllManagedModulesForAllRequests="true"
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?
Solution 1:[1]
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.
Solution 2:[2]
For those of you running Windows Server 2012 the Application Development features are found at
[] Server Roles
[] Web Server IIS
[] Web Server
[] Application Development
[] ASP.NET x.x
When you select the .NET version it will ask if you want to add Extensions and other features. I just said yes, but you may be able to get away without installing those.
Solution 3:[3]
its hard to give a specific answer here, but the basics of it are that you need to look at the machine.config for the box you're running on. find the system.webServer
node and look for the 3 tags/attributes its referencing in the error. chances are you'll find something that is marked as not overridable (allowOverride="false"
), but i've not messed with windows 8/server 2012 yet, so i don't know what the machine.config looks like.
Solution 4:[4]
You can unlock the section via the IIS UI per https://serverfault.com/a/516921/137255
- Open IIS Manager
- Click the server name in the tree on the left
- Right hand pane, Management section, double click
Configuration Editor
- At the top, choose the relevant section based on the offending item's XPath; i.e.
system.webServer/modules
for this example. - Right hand pane, click
Unlock Section
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | taky.kim |
Solution 2 | TheDude |
Solution 3 | nathan gonzalez |
Solution 4 | JohnLBevan |