If you are getting this error message please read on." />

Restricted web.config sections

   —   
Error message: This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file.

If you are getting this error message please read on.


This error appears if there are restricted sections in the web.config file. Those sections are restricted with some other config file like applicationHost.config or machine.config. Please review those files and change the statement of the location which you are trying to alter from:

<location allowOverride="Deny">

to

<location allowOverride="Allow">

For more relevant information about delegation in IIS configuration files please check this article about IIS delegation

The easiest way would be to modify them by hand directly. There are a lot of online guides about this, e.g.:

Editing applicationhost.config


See also:

Applies to: All
Share this article on   LinkedIn

Juraj Ondrus

Hi, I am the Technical support leader at Kentico. I'm here to help you use Kentico and get as much as possible out of it.