Symptoms
Unable to add a domain in Plesk:
Error: ProtDir_IIS::update() failed: Add Protected Directory failed: Filename: ?C:Inetpubvhostsexample.comhttpdocsweb.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.
Resolution
-
Connect to the server via RDP.
-
Create a copy of the
C:WindowsSystem32inetsrvConfigapplicationHost.config
file. -
Open the
C:WindowsSystem32inetsrvConfigapplicationHost.config
file for editing and add the missing lines (in bold) into respective sections:<configuration>
<configSections>
...
<sectionGroup name="system.webServer">
...
<section name="pleskProtectedUrls" overrideModeDefault="Deny" />
...
</sectionGroup>
...
</configSections>
...
</configuration>and
<system.webServer>
...
<globalModules>
...
<add name="PleskUrlProtectionModule" image="%windir%System32inetsrvpleskurlprotection.dll" />
...
</globalModules>
...
</system.webServer>