Error – This configuration section cannot be used at this path.

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”.

 

Hi All,

Today new issue and solution 🙂

Background: We have developed MVC Asp.net web application. We want to publish the web application in IIS. We have the new Windows 2012 R2 server where IIS is not installed. So we launched “Add Roles and Features Wizard” dialog from Server Manager as

fig1-AddRolesAndFeature

Fig 1 : Add Roles and Features Wizard

Click on “Next” button selected the Installation Type as “Role-based or feature-based installation” as

fig2-AddRolesAndFeature-InstallationType

Fig 1 : Add Roles and Features Wizard – Installation Type

 

Then from “Server Roles” we have selected the “Web Server (IIS)” as

fig2-AddRolesAndFeature-ServerRoles

Fig 3 : Add Roles and Features Wizard – Server Roles – IIS

We have IIS ready on the server. We have published our MVC Asp.net web application on the server.

Issue: When we are trying to access the our web application on the server we are getting as following issue

“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: We googled bit and found some couple of references. Issue is while installing we also need to select the following roles from “Application Development Feature” as

.Net extensibility 4.5 (current .Net framework installed on the server)

ASP.NET 4.5

ISAPI Extensions

ISAPI Filters

fig4-AddRolesAndFeature-ServerRoles - Missing Roles

Fig 4 : Add Roles and Features Wizard – Server Roles – Application Development

Once we have installed those missing roles, we could access our site 🙂

References:

https://stackoverflow.com/questions/9794985/config-error-this-configuration-section-cannot-be-used-at-this-path

https://serverfault.com/questions/360438/iis-complains-about-a-locked-section-how-can-i-find-out-where-its-locked

Prasham Sabadra

LIFE IS VERY BEAUTIFUL :) ENJOY THE WHOLE JOURNEY :) Founder of Knowledge Junction and live-beautiful-life.com, Author, Learner, Passionate Techie, avid reader. Certified Professional Workshop Facilitator / Public Speaker. Scrum Foundation Professional certificated. Motivational, Behavioral , Technical speaker. Speaks in various events including SharePoint Saturdays, Boot camps, Collages / Schools, local chapter. Can reach me for Microsoft 365, Azure, DevOps, SharePoint, Teams, Power Platform, JavaScript.

You may also like...

2 Responses

  1. furkan says:

    thanks, Its unique and valuable information

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: