Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuration file is not well-formed XML #2

I'm trying to fix an IIS 7 web server on Windows Server 2008. I don't know what caused this configuration to go bad. Any ideas on where to begin to look?

Error when clicking on the server node in the object explorer of IIS Manager.

There was an error when trying to connect.  Do you want to retype your credentials and try again?  Details:  Filename:  \\?\C:\Windows\system32\inetsrv\config\applicationHost.config Line number: 1 Error: Configuration file is not well-formed XML 

enter image description here

like image 963
MacGyver Avatar asked Jul 22 '13 16:07

MacGyver


People also ask

Why are configuration files in XML format?

XML configuration files let you address many different applications and operating requirements, removing the need to programmatically set and reset options for them. A single XML file can contain options for multiple applications.

What is config XML file?

The config. xml file is a persistent store for the managed objects that WebLogic Server creates and modifies during its executing using the BEA implementation of the JMX API. The purpose of config. xml is to store changes to managed objects so that they are available when WebLogic Server is restarted.


1 Answers

This issue is due to the file 'applicationhost.config' getting corrupted.

The backup of this file is stored at C:\inetpub\history\. Delete the corrupted file C:\Windows\system32\inetsrv\config\applicationhost.config and restore it from the backup. Then start \ restart IIS.

The problem will be resolved.

like image 90
user3013626 Avatar answered Sep 20 '22 19:09

user3013626