如果iis的配置文件 applicationHost.config坏掉了, 会在 C:inetpubhistory 中存储历史备份。复制过去还原就可以了-摘自网络

You will usually get the error ‘Configuration file is not well-formed XML’ ‘C:Windowssystem32inetsrvconfigapplicationHost.config’ when you open IIS manager or get the error Windows Process Activation service (WAS) could not start – Error 13 The data is invalid, while restarting IIS from the command prompt  specially on Windows 2008 server .

Usually you will get this error when the applicationHost.config gets corrupt at the following path C:Windowssystem32inetsrvconfig . Fortunately IIS makes the backup of the configuration file “applicationHost.config” at the path C:inetpubhistory whenever any change in IIS configuration is made .

To resolve the problem goto the path C:inetpubhistoryCFGHISTORY and copy the latest applicationHost.config and replace the file applicationHost.config at C:Windowssystem32inetsrvconfig .

Now restart the IIS .

原文地址:https://www.cnblogs.com/haoliansheng/p/3363225.html