locked
IIS 7.5 : HTTP Error 500.19 - Internal Server Error - The requested page cannot be accessed because the related configuration data for the page is invalid. RRS feed

  • Question

  • User962345173 posted

    Hello everybody,

     I have a problem when trying to access to a website, which is stored on a Windows Server 2008 R2 Standard.

    I don't understand what I have to do to fix this problem.

     Can anybody help me? This site must work before 17h (GMT+1)...

    Thanks in advance.

     

    Error Summary

    HTTP Error 500.19 - Internal Server Error

    The requested page cannot be accessed because the related configuration data for the page is invalid.

    Detailed Error Information

    Module IIS Web Core
    Notification BeginRequest
    Handler Not yet determined
    Error Code 0x800700b7
    Config Error Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'ArCacheItem'
    Config File \\?\C:\inetpub\wwwroot\TeamCentral\web.config
    Requested URL http://localhost:80/Teamcentral
    Physical Path C:\inetpub\wwwroot\TeamCentral
    Logon Method Not yet determined
    Logon User Not yet determined
    <FIELDSET><LEGEND>Config Source</LEGEND>
      207:       <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      208:       <add name="ArCacheItem" verb="*" path="*.ArCacheItem" type="DataDynamics.ActiveReports.Web.Handlers.WebCacheAccessHandler, ActiveReports.Web, Version=5.2.1013.2, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" preCondition="integratedMode" />
      209:     </handlers>
    
    </FIELDSET>
    Wednesday, July 28, 2010 4:18 AM

Answers

  • 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.

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Wednesday, July 28, 2010 1:25 PM

All replies

  • User962345173 posted

    I deleted the line 208 in the file web.config, and it works!

    Wednesday, July 28, 2010 5:24 AM
  • 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.

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Wednesday, July 28, 2010 1:25 PM