Search This Blog
Thursday, August 2, 2012
IIS Error: This configuration section cannot be used at this path.
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 (overrideModeDefault=”Deny”), or set explicitly by a location tag with overrideMode=”Deny” or the legacy allowOverride=”false”.
Note: When you meet this error you must consider where IIS locates your error. For example, in the image above the error relates to handlers tag. I have this error twice when publish WCF Services, one with handlers and one with modules.
Solution:
- Navigate to C:\Windows\System32\inetsrv\config
- Right click on file applicationHost.config and open it with Notepad
- Search and find the tag which IIS has error with it and edit overrideModeDefault = “Allow”. Remember to save file before close it
Etichete:
IIS