Troubleshoot IIS - Configuration option cannot be used
Problem
When loading SupportPal you see:
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".
Cause
IIS allows server administrators to prevent users from overriding specific configuration directives in a user defined
web.config
file. This is similar to the AllowOverride
directive in Apache. The error states
that a configuration directive used in our suggested web.config
file
cannot be overridden.
Resolution
- Open
%SystemRoot%\System32\inetsrv\config\applicationHost.config
-
Search for the statements below and change the
allowOverride
attribute fromDeny
toAllow
<section name="handlers" allowOverride="Deny" /> <section name="modules" allowOverride="Deny" />
- Restart IIS
Useful Links