User299556178 posted
For the reference, in case someone else is having the same problem, I will explain the key elements of the error.
"Config file" tells you which file the error is located. In this case, it was C:\inetpub\wwwroot\TeamCentral\web.config. So we know which file we need to look at.
"Config error" tells us what is wrong. In this case it is a duplicate collection of type 'add' which has the same name. This basically means that you have two identical tags. This sometimes happen if you manually edit the file, or some occasions, when you
restore or migrate a website. The easiest thing to do is just search for the name in web.config, and identify the duplicate entries, and delete one of them (as you have done).
I hope this explanation helps someone else in the same situation.