Article ID: 114206, created on Jun 26, 2012, last review on Jan 31, 2015

  • Applies to:
  • Plesk 12.0 for Windows
  • Plesk 11.5 for Windows


The IIS service does not respond. Websites and the Control Panel are down.

The following error is shown in IIS Manager:

    Error: Cannot write configuration file


    There was an error while performing this operation.
    Filename: \\?\C:\Windows\system32\inetsrv\config\applicationHost.config
    Line number: 1517
    Error: Configuration file is not well-formed XML

Note: The file path may differ from the above examples.


This issue may occur if there is not enough disk space on the server. The file path may vary from the one above, but, essentially, the error means that IIS has failed to write to one of its configuration files ('C:\Windows\System32\inetsrv\config\applicationHost.config' in the above example).


Free up some disk space and restore the latest IIS configuration backup.

Example commands for IIS 7:

cd %windir%\System32\inetsrv

C:\Windows\System32\inetsrv>appcmd list backup

C:\Windows\System32\inetsrv>appcmd restore backup CFGHISTORY_0000000062
Restored configuration from backup "CFGHISTORY_0000000062"

NOTE: The file at the bottom of the list is usually the latest one. However, to confirm this, you may check the creation date. The backups are stored in 'C:\Inetpub\history' by default.

If your restoration fails with the following error:

    ERROR ( hresult:80070005, message:Command execution failed.
    Access is denied.

Disable the 'Read Only' attribute on the 'C:\Windows\System32\inetsrv\config\schema\rewrite_schema' file.

Restart IIS after restoring the configuration:

iisreset /restart

Search Words

applicationhost.config was blank

Cannot write configuration file

cannot start service w3svc on computer


Migration Request


IIS error


Configuration file is not well-formed XML

Error: Connection to host is not available or migration agent is not running on the source host

IIS keeps restarting

update crashed

There was an error while performing this operation.

website loading

IIS does not start

plesk reconfigurator

bd7fc88cf1b01f097749ae6f87272128 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 85a92ca67f2200d36506862eaa6ed6b8 46a8e394d6fa13134808921036a34da8 ed7be2b984f9c27de1d2dc349dc19c6d a766cea0c28e23e978fa78ef81918ab8

Email subscription for changes to this article
Save as PDF