Loading ...

IIS 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 | CodeAsp.Net

IIS 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

 /5
0 (0votes)

One of our developers got this error while locally configuring ASP.NET 4.0 website on his local IIS 7 server:

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"

To fix this issue, follow these steps:

1. Go to C:\Windows\System32\inetsrv\config  and edit the applicationHost.config file.

2. Modify these values below located in section <configSections>  <sectionGroup name="system.webServer"> in the applicationHost.config file:

  • <section name="handlers" overrideModeDefault="Deny" /> modify this from "Deny" to "Allow"
  • <section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Deny" /> modify this value from "Deny" to "Allow"

    Note: The applicationHost.config file may not open if you are trying to use 32bit VS to open it on a x64 bit system. The solution is to open it using Notepad.

Comments (no comments yet)

Top Posts