IIS8 Win8 and runAllManagedModulesForAllRequests="true"

asp.net Mvc-3Iis 8

asp.net Mvc-3 Problem Overview


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?

asp.net Mvc-3 Solutions


Solution 1 - asp.net Mvc-3

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 - asp.net Mvc-3

For those of you running Windows Server 2012 the Application Development features are found at

     [] 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 - asp.net Mvc-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 - asp.net Mvc-3

You can unlock the section via the IIS UI per https://serverfault.com/a/516921/137255

  1. Open IIS Manager
  2. Click the server name in the tree on the left
  3. Right hand pane, Management section, double click Configuration Editor
  4. At the top, choose the relevant section based on the offending item's XPath; i.e. system.webServer/modules for this example.
  5. Right hand pane, click Unlock Section

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDavid SulpyView Question on Stackoverflow
Solution 1 - asp.net Mvc-3taky.kimView Answer on Stackoverflow
Solution 2 - asp.net Mvc-3TheDudeView Answer on Stackoverflow
Solution 3 - asp.net Mvc-3nathan gonzalezView Answer on Stackoverflow
Solution 4 - asp.net Mvc-3JohnLBevanView Answer on Stackoverflow