Web Agent :: IIS 7 : web.config file

Document ID : KB000051046
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

I installed Web Agent with IIS 7 in classic mode.
When I start the IIS default web site, I got the following error message:

---------------------------
Authorization Rules
---------------------------
There was an error while performing this operation.

Details:
Filename: \\?\C:\inetpub\wwwroot\web.config
Line number: 2
Error: Configuration file is not well-formed XML

How could that be solved?

Solution:

If web.config file is already present before running WebAgent configuration then delete the file as the configuration will create a new one with the correct syntax.

If the file is already present then chances are that WebAgent will not be able to modify the web.config file correctly which will eventually led to the IIS start up error.