Incorrect syntax in Web.config file causes 500 internal server error
Posted by on 02 August 2010 01:58 PM

Error description: you see error page on website or in websitepanel website setting section.

Error contains details like this:

Config Error Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to ...

Config File \\?\D:\Websites\username\\wwwroot\web.config

The error means you change some website setting in control panel  and the change creates syntax error in web.config file.

It could be the website is configured with incorrect ASP.NET version.

To fix problem, you need to remove configuration error in web.config file or delete web.config file to reset default setting.

Follow the steps below to regain control of website setting in WebsitePanel

1. Use File Manager or ftp to rename web.config file to web.config.bak.

2. Go to Websites -> Website Setting in WebsitePanel and configure correct ASP.Net version, then re-upload working web.config file from your computer to server.

(205 vote(s))
This article was helpful
This article was not helpful