HTTP Error 500.19

Discussion in 'ASP.NET / ASP.NET Core' started by MHMS, Oct 29, 2010.

  1. I'm getting this error when I click on our new link.
    Here is the Detailed Error Report

    Module DefaultDocumentModule
    Notification ExecuteRequestHandler
    Handler StaticFile
    Error Code 0x800700b7
    Config Error Cannot add duplicate collection entry of type 'add' with unique key attribute 'value' set to 'itemlist.aspx'
    Config File \\?\E:\web\thehealthmu\htdocs\EcomDEV\web.config

    Requested URL http://secure.thehealthmuseum.org:80/ecomdev
    Physical Path E:\web\thehealthmu\htdocs\EcomDEV
    Logon Method Anonymous
    Logon User Anonymous

    Config Source
    612: <files>
    613: <add value="itemlist.aspx" />
    614: </files>

    Whats problem?
     
  2. dmitri

    dmitri DiscountASP.NET Staff

    This can be an inheritance issue. When you installed a web application to your EcomDEV subfolder, the web.config file of this application probably inherited some configurations from the web.config file in the parent (root) directory. I suggest to remove or rename temporarily web.config file in the root directory and reinstall your web application in EcomDEV subfolder to avoid inheritance conflict.
     
  3. Bruce

    Bruce DiscountASP.NET Staff

    might as well remove it completely because the default doc will inherit from the root web.config.
     
  4. Hi,

    I'm having the same problem. It's saying:

    Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'BasicAuthenticationModule'

    I assume that you're talking about an application hosted in the root (A) vs an application hosted in a subdirectory (B).

    However, I do not have BasicAuthenticationModule in my web.config file in the root application (A). Is there another default web.config file? If there is one, I can't see it from the control panel.

    James
     
  5. I know it is december now, but just to tell you I had the same problem, all sub applications will inherit from the root web.comfig, I have toiled with that for a while then I ended up deleting the sub web.configs and the sub apps ran ok. I thin the server will always defaults to the root web.config.
     
  6. Takeshi Eto

    Takeshi Eto DiscountASP.NET Staff

    We have a web application tool in the control panel where you can set any subfolder as its own application starting point.
     

Share This Page