This article is a mirror article of machine translation, please click here to jump to the original article.

View: 10322|Reply: 0

[Web] This configuration section cannot be used in this path. If the ...

[Copy link]
Posted on 12/2/2018 2:21:57 PM | | | |
This configuration section cannot be used in this path. This occurs if the section is locked at the parent level. Locking is set by default (overrideModeDefault="Deny") or explicitly by a location tag that contains overrideMode="Deny" or the old allowOverride="false".


When building a website under a newly installed IIS7, the error message appears as follows:

Misconfiguration This configuration section cannot be used in this path. This occurs if the section is locked at the parent level. Locking is set by default (overrideModeDefault="Deny") or explicitly by a location tag that contains overrideMode="Deny" or the old allowOverride="false".
Configuration file \\?\X (drive letter): \directory name\directory name\web.config

Configure the source

Solution:

This error occurs because IIS 7 uses a more secure web.config management mechanism that locks configuration items by default and does not allow changes. To unlock the lock, you can run the command line %windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers as administrator. The handlers are the node names shown in red in the error message.

If modules are also locked, you can run %windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/modules

Note: To run as an administrator, the default is not an administrator identity, method, search for programs and files in the start menu and enter CMD, a CMD.EXE will appear above, click the key on this CMD.EXE file, select "Run as administrator", open the command line window, and enter the above command.
In addition, if you use a friend who uses Asp.net,When installing IIS7, be sure to check the Asp.net, if you don't check it by default, similar error messages will appear





Previous:Which home projector is recommended?
Next:Four serials, four essentials, and most of the Yongle classics are edited
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com