More in this section
Forums / Bugs & Issues / "An item with the same key has already been added." when registering new Basic Settings

"An item with the same key has already been added." when registering new Basic Settings

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Joseph
    Joseph avatar
    3 posts
    09 Jun 2015
    07 Aug 2015
    Link to this post

    Hello all, 

    I was recently trying to figure out how to add settings to the Basic Settings section in a multisite instance. I happened upon this post and followed the provided example exactly, adding the files to my project and altering my Global.ascx file accordingly. However, when trying to visit the settings page (this happens on basic settings, not advanced settings), I get this error:

    "An item with the same key has already been added."


    I've tried changing the property, changing the view, and changing the file names, but all to no avail.

    Can anyone give me some insight as to why I may be getting this error? Thanks

  2. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    17 Aug 2017
    12 Aug 2015
    Link to this post
    Hello Joseph,

    Please note that the sample we have provided in the forum thread you have referred to is tested for Sitefinity version 7.1 and it is not tested for other Sitefinity versions.

    Judging by the error message the issue occurs when adding the basic settings view to the collection of available views and it seems that you are trying to add a view which already exists.

    Can you please check if you are trying to register basic settings view in the Global.asax file using the same name and title as an already registered one?

    Sabrie Nedzhip
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered