Announcement

Collapse
No announcement yet.

Incorrect syntax in Web.config file causes 500 internal server error

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Incorrect syntax in Web.config file causes 500 internal server error

    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\yourdomain.com\wwwroot\we b.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.
Working...
X