Applicable to:
- Plesk for Windows
Symptoms
Unable to add a domain in Plesk:
PLESK_ERROR: Error: ProtDir_IIS::update() failed: Add Protected Directory failed: Filename: \?\C:\Inetpub\vhosts\example.com\httpdocs\web.config Error: The configuration section 'system.webServer/pleskProtectedUrls' cannot be read because it is missing a section declaration In module
Cause
Missing registries in the applicationHost.config
file due to incorrect plesk-urlprotection
package installation.
The following may also persist:
C:\>"%plesk_cli%\\repair.exe" --synchronize-protected-directories-storage
The system cannot find the path specified.
C:\>cd %plesk_cli%
The system cannot find the path specified.
Resolution
-
Connect to the server via RDP.
-
Create a copy of the
C:\Windows\System32\inetsrv\Config\applicationHost.config
file. -
Open the
C:\Windows\System32\inetsrv\Config\applicationHost.config
file for editing and add the missing lines (in bold) into respective sections:CONFIG_TEXT: <configuration>
<configSections>
...
<sectionGroup name="system.webServer">
...
<section name="pleskProtectedUrls" overrideModeDefault="Deny" />
...
</sectionGroup>
...
</configSections>
...
</configuration>and
CONFIG_TEXT: <system.webServer>
...
<globalModules>
...
<add name="PleskUrlProtectionModule" image="%windir%\System32\inetsrv\pleskurlprotection.dll" />
...
</globalModules>
...
</system.webServer>
Comments
1 comment
Error: ProtDirUser_IIS::update() failed: Update Protected Directory #45985 user failed: URL '/plesk-stat' is not protected In IIS7NativeProvider module Exception type: System.Exception at ProtectedUrls.get(ProtectedUrls* , unique_ptr<iprotectedurl\,std::default_delete >* , basic_string<wchar_t\,std::char_traits\,std::allocator >* path) at updateProtectedUrlUser(vivaanifotech.in, /plesk-stat, ph20355749351, )(WebServerManager::updateProtectedUrlUser line 705) at execute console command --update-protected-url-user(vconsoleapp::start line 93) at execute "C:\Program Files (x86)\Parallels\Plesk\admin\bin64\websrvmng" --update-protected-url-user "--vhost-name=vivaanifotech.in" "--path=/plesk-stat" "--login=ph20355749351" "--new-password=*"(vconsoleapp::run line 110) (Error code 1)</wchar_t\,std::char_traits</iprotectedurl\,std::default_delete
Please sign in to leave a comment.