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 Microsoft 365 Junction, Speaker, Author, Learner, Developer, Passionate Techie. Certified Professional Workshop Facilitator / Public Speaker. Believe in knowledge sharing. Around 20+ years of total IT experience and 17+ years of experience in SharePoint and Microsoft 365 services Please feel free me to contact for any SharePoint / Microsoft 365 queries. I am also very much interested in behavioral (life changing) sessions like motivational speeches, Success, Goal Setting, About Life, How to live Life etc. My book - Microsoft 365 Power Shell hand book for Administrators and Beginners and 100 Power Shell Interview Questions - https://www.amazon.in/Microsoft-Administrators-Beginners-Interview-Questions/dp/9394901639/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1679029081&sr=8-11

You may also like...

2 Responses

  1. furkan says:

    thanks, Its unique and valuable information

Leave a Reply

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

Discover more from Microsoft 365

Subscribe now to keep reading and get access to the full archive.

Continue reading