« Previous Next »

Answered Thread: Error: Cannot add duplication entry of type

Last post 06-11-2009 5:40 PM by kateroh. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 06-11-2009, 1:50 PM

    Error: Cannot add duplication entry of type

     I am new to IIS.

    From IIS 7 in the left connections panel, when I click on my domain and select the virtual directory then click on application settings icon I get this error:

    Cannot add duplication entry of type 'add' with unique key attribute 'key' set to 'ConnectionString'

     

    What do I do.
  • 06-11-2009, 2:17 PM In reply to

    Re: Error: Cannot add duplication entry of type

    Check your web.config within the virtual directory to see if it adds a connection string that is already defined in the site's web.config or in appplicationHost.config for the site or virtual directory.

    Thanks,
    Katerina Rohonyan, SDET, Microsoft IIS Team
  • 06-11-2009, 2:46 PM In reply to

    Re: Error: Cannot add duplication entry of type

    I can access the web.config in the website folder, but I do not know to access the web.config in the application.

    Here is my folder setup

    /mydomain/httpdocs/website and web.config

    Virtual Application

    /mydomain/my application 

  • 06-11-2009, 5:40 PM In reply to

    Answered Re: Error: Cannot add duplication entry of type

    If you don't see config file in the application folder, there is no config specific to the application and all the settings are inherited from the site. Look in your site config for a duplicate connection string in the connectionStrings section.

     

    Thanks,
    Katerina Rohonyan, SDET, Microsoft IIS Team
Page 1 of 1 (4 items)
Microsoft Communities