1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / An item with the same key has already been added.

An item with the same key has already been added.

4 posts, 0 answered
  1. Jim
    Jim avatar
    5 posts
    Registered:
    03 Oct 2014
    07 Jun
    Link to this post

    I'm suddenly getting the  'An item with the same key has already been added.'  error when running from Visual Studio (2015 - Ver 14.0.25431.01).  I hit this error before the site comes up. The same code has no problem when running in IIS.       Any advice appreciated!  

     

    [ArgumentException: An item with the same key has already been added.] System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) +52 System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +12988770 Telerik.Sitefinity.Configuration.ConfigElementDictionary`2.Add(TKey key, TElement element) +150 Telerik.Sitefinity.Configuration.ConfigElementDictionary`2.Add(TElement element) +30 Telerik.Sitefinity.Security.Configuration.SecurityConfig.LoadDefaults() +1497 Telerik.Sitefinity.Security.Configuration.SecurityConfig.OnPropertiesInitialized() +78 Telerik.Sitefinity.Configuration.ConfigSection.InitializeProperties() +18 Telerik.Sitefinity.Configuration.ConfigElement.EnsurePropertiesInitialized() +106 Telerik.Sitefinity.Configuration.ConfigElement.get_Properties() +15 Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadAttributes(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew) +137 Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName) +160 Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromReader(ConfigSection section, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, Boolean checkForUpgrade, UpgradingInfo& upgradingInfo) +290 Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromFile(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName, Boolean withUpgrade) +93 Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSection(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName) +41 Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider, ConfigPolicyHandler policyHandler, String policyName, Boolean singlePolicy) +227 Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider) +16 Telerik.Sitefinity.Configuration.Config.GetSectionInternal(Type sectionType, Boolean safeMode, String sectionName) +147 Telerik.Sitefinity.Configuration.Config.GetSectionPrivate(Type sectionType, Boolean safeMode, String sectionName) +135 Telerik.Sitefinity.Configuration.Config.GetSectionPrivate(Boolean safeMode) +99 Telerik.Sitefinity.Configuration.Config.Get(Boolean safeMode) +46 Telerik.Sitefinity.Configuration.Config.Get() +36 Telerik.Sitefinity.Security.SecurityManager..cctor() +292

     

  2. David
    David avatar
    0 posts
    Registered:
    19 Jun 2017
    19 Jun in reply to Jim
    Link to this post
    I'm getting the same exact error message all of a sudden. I'm also running VS 2015. Have you figured out a fix?
  3. AJ
    AJ avatar
    0 posts
    Registered:
    08 Oct 2013
    19 Jun
    Link to this post
    Have you had any luck with this? I'm having the exact same issue.
  4. Jim
    Jim avatar
    5 posts
    Registered:
    03 Oct 2014
    19 Jun
    Link to this post

    I have not yet applied this patch, but I believe this may be the solution. Even though the link implies the issue is with Windows 10 update,  it' actually with .Net 4.7 

    http://www.sitefinity.com/developer-network/forums/bugs-issues-/the-type-initializer-for-'telerik-sitefinity-security-securitymanager'-threw-an-exception-after-windows-10-updates

4 posts, 0 answered