Friday, January 25, 2013

How to fix error ‘This configuration section cannot be used at this path’ when running ASP.NET apps

Problem description:

You receive the error message:

HTTP Error 500.19 - Internal Server 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