Error: 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".
Solution
Open Control Panel
Click on Programs
Click on "Turn windows features on or off"
in the features window, Click Expand: "Internet Information Services"
Click Expand: "World Wide Web Services"
Click Expand: "Application Development Features"
Check (enable) the features. I checked all but CGI.
Still it was not working
I tried below option also...
Browse to “C:\Windows\System32\inetsrv\config” (you will need administrator rights here)
Open applicationHost.config
Find the section that showed up in the “config source” part of the error message page. For me this has typically been “modules” or “handlers”
Change the overrideModeDefault attribute to be “Allow”
So the whole line now looks like:
<section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Allow" />
After saving the file, the page loaded up fine in my browser.
Solution
Open Control Panel
Click on Programs
Click on "Turn windows features on or off"
in the features window, Click Expand: "Internet Information Services"
Click Expand: "World Wide Web Services"
Click Expand: "Application Development Features"
Check (enable) the features. I checked all but CGI.
Still it was not working
I tried below option also...
Browse to “C:\Windows\System32\inetsrv\config” (you will need administrator rights here)
Open applicationHost.config
Find the section that showed up in the “config source” part of the error message page. For me this has typically been “modules” or “handlers”
Change the overrideModeDefault attribute to be “Allow”
So the whole line now looks like:
<section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Allow" />
After saving the file, the page loaded up fine in my browser.