- Plesk for Windows
The IIS Manager service does not respond. Websites and Plesk are down.
The following error is shown in IIS Manager:
Error: Cannot write configuration file
PLESK_INFO: There was an error while performing this operation.
Line number: 1517
Error: Configuration file is not well-formed XML
Note: The file path can be different from the above examples.
This issue can occur if there is not enough disk space on a server. The error means that IIS has failed to write to one of its configuration files.
1. Free up or allocate additional disk space.
2. After the disk has enough space, restore the latest IIS configuration backup:
Open a Command Prompt and switch to the directory %windir%\System32\inetsrv:
C:\> cd %windir%\System32\inetsrv
List all available IIS configuration backups:
C:\> appcmd list backup
Restore the latest available configuration backup:
C:\> appcmd restore backup CFGHISTORY_0000000062
Restored configuration from backup "CFGHISTORY_0000000062"
Note: The file at the bottom of the list is usually the latest. However, to confirm this, check the creation date. The backups are stored in C:\Inetpub\history by default.
If the restoration fails with the error message:
C:\> ERROR ( hresult:80070005, message:Command execution failed.
Access is denied.)
Disable the Read-only attribute on the file C:\Windows\System32\inetsrv\config\schema\rewrite_schema.
Restart IIS after restoring the configuration:
C:\> iisreset /restart