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