Fixing overrideMode issue
Last modified:
Based on your on-premise environment configuration after upgrade to KanBo 2.2 you can face following issue:
Module: WindowsAuthenticationModule
Notification: AuthenticateRequest
Handler: PageHandlerFactory-Integrated-4.0
Error Code: 0x80070021
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 ="Deny" or the legacy allowOverride="false".
Config File: \\?\C:\inetpub\wwwroot\kanbo.com\web.config
The error occurs in line 196:
<windowsAuthentication enabled="false" />
To solve it navigate to IIS Manager console, select KanBo site and form Management section enter Configuration Editor.
Expand system.webServer -> security -> authentication -> anonymousAuthentication section.
And in from dropdown select KanBo web.config.
Now change from drop down to second possibility and right click on any row, select Section and Unlock Section.
Now you will be able to select KanBo web.config. Ensure section is unlocked.
Now change section to system.webServer -> security -> authentication -> windowsAuthentication.
And repeat steps.
Ensure section is unlocked in Kanbo web.config.
Alternatively you can add follow this article to change ApplicationHost.config file located at
C:\Windows\System32\inetsrv\config and set <location path="Your KanBo site name here" overrideMode="Allow">
Sometimes saving ApplicationHost.config using Notepad++ does not save changes - please use then normal Notepad instead.