Config Error 'This configuration section cannot be used at this path'

By FoxLearn 5/25/2024 3:05:33 AM   409
How to fix error 'Config Error: This configuration section cannot be used at this path' when trying to load the home page, or access authentication on the new site in IIS

The error message you're encountering typically indicates a configuration issue with the web application or the IIS (Internet Information Services) server.

Here are some steps to troubleshoot and potentially fix this issue:

Maybe you encountered an error when deploying the website to the server

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

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

HTTP Error 500.19 - Internal Server Error

I have some other way you can solve this problem

First you need to check your IIS is installed with components like below.

Opening your Controll Panel, then select Program and Features -> Turn Windows Features on or off

windows features

Make sure you have installed all the items as shown in the picture

Next, Open your IIS, then select Feature Delegation

iis manager

Best way to change Application Settings from Custom Site Delegation is Open IIS and from the root folder select Feature Delegation, then select Application Settings and from the right sidebar select Read/Write

Selecting Handler Mappings item, then set value from Read Only to Read/Write