1

Config 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". Config File \?\C:\GitSrsCodes\IMS\IMS.Web\web.config. There is an image I am attaching as well: enter image description here

Any help and advise would be very helpful - thank you

AbdulAleem
  • 63
  • 8
  • Does this answer your question? [Config Error: This configuration section cannot be used at this path](https://stackoverflow.com/questions/9794985/config-error-this-configuration-section-cannot-be-used-at-this-path) – Ken Y-N Jun 02 '21 at 00:31
  • Yes I solved my problem thank you so much, do you want me to delete this post? What is better option, I posted which exactly fixed my issue but still if its better to remove this post itself I can – AbdulAleem Jun 02 '21 at 02:25

1 Answers1

1

The following approach has helped me in fixing the above issue: Look for the following lines

<section name="windowsAuthentication" overrideModeDefault="Deny" />
<section name="anonymousAuthentication" overrideModeDefault="Deny" />
<add name="WindowsAuthenticationModule" lockItem="true" />
<add name="AnonymousAuthenticationModule" lockItem="true" />
Change those lines to

<section name="windowsAuthentication" overrideModeDefault="Allow" />
<section name="anonymousAuthentication" overrideModeDefault="Allow" />
<add name="WindowsAuthenticationModule" lockItem="false" />
<add name="AnonymousAuthenticationModule" lockItem="false" />
AbdulAleem
  • 63
  • 8