Fixing overrideMode issue


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

kanbo Fixing overrideMode issue


To solve it navigate to IIS Manager console, select KanBo site and form Management section enter Configuration Editor.

kanbo Fixing overrideMode issue


Expand system.webServer -> security -> authentication -> anonymousAuthentication section.

kanbo Fixing overrideMode issue


And in from dropdown select KanBo web.config.

kanbo Fixing overrideMode issue


Now change from drop down to second possibility and right click on any row, select Section and Unlock Section.

kanbo Fixing overrideMode issue


Now you will be able to select KanBo web.config. Ensure section is unlocked.

kanbo Fixing overrideMode issue


Now change section to system.webServer -> security -> authentication -> windowsAuthentication.

kanbo Fixing overrideMode issue


And repeat steps.


Ensure section is unlocked in Kanbo web.config.

kanbo Fixing overrideMode issue


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

kanbo Fixing overrideMode issue


Sometimes saving ApplicationHost.config using Notepad++ does not save changes - please use then normal Notepad instead.

0x80070021 allowOverride Authenticate Request IIS overrideModeDefault WindowsAuthenticationModule

Is this article helpful for you?