Symptoms
-
Unable to access Plesk and IIS service with the error below:
There was an error while performing this operation.
Details:
Filename: \?C:Windowssystem32inetsrvconfigapplicationHost.config
Line number: 1517
Error: Configuration file is not well-formed XML
Cause
The corrupted configuration of the IIS service.
Resolution
- Log into the server via RDP.
- Start a command prompt as an Administrator.
- Execute the following command to list all IIS configuration backups:
C:> cd %windir%System32inetsrv & appcmd list backup
BACKUP “CFGHISTORY_0000000054”
BACKUP “CFGHISTORY_0000000055”
…
BACKUP “CFGHISTORY_0000000062” - Restore the latest available IIS configuration backup:
C:> cd %windir%System32inetsrv & appcmd restore backup CFGHISTORY_0000000062
-
Note: in case the backup restoration fails with the error below, disable the Read-only attribute for the
C:WindowsSystem32inetsrvconfigschemarewrite_schema
file:ERROR ( hresult:80070005, message:Command execution failed.
Access is denied.)
-
- Restart the IIS service:
C:> iisreset /restart