Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ... An item with the same key has already been added. An item with the same key has already been added.
Previous
 
Next
New Post
8/17/2014 1:41 PM
 

Hi, 

Yesterday, I made a new installation with the latest dnn version 07.03.02. Now there is a lot of admin settings that could not be saved when i change it in the admin section. If i take a look at the eventviewer, there is multiples occurences of the same error. The error said  "An item with the same key has already been added." Here is the complete error details:

AssemblyVersion:7.3.2

PortalID:0

UserID:3

UserName:doum

ActiveTabID:62

ActiveTabName:Site Settings

RawURL:/fr-fr/Admin/Site-Settings

AbsoluteURL:/Default.aspx

AbsoluteURLReferrer:/Admin/Site-Settings

UserAgent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36

DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke

ExceptionGUID:7ed4b823-8caf-4480-9704-96f29d1185a0

InnerException:An item with the same key has already been added.

FileName:

FileLineNumber:0

FileColumnNumber:0

Method:System.ThrowHelper.ThrowArgumentException

StackTrace:

Message:

System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at DotNetNuke.Entities.Portals.PortalController.GetPortalSettingsDictionaryCallback(CacheItemArgs cacheItemArgs)

 

Source:

 

So now, i cannot edit the site settings. This error occurs almost each time i try to same some admin settings. Can someone help me to find a solution about this issue please. Sorry if my english is not perfect.

 

Thanks in advance

 

 
New Post
8/18/2014 8:18 AM
 

This looks like a settings localization issue in PortalSettings.  Let me get one of the localization experts to take a look.


Joe Brinkman
DNN Corp.
 
New Post
8/18/2014 8:23 AM
 
can you please look in the portalsettings table and see if there are 2 items in there with the same settingName (i.e. similar to http://www.dnnsoftware.com/forums/for... ) - if so can you let us know what the settingName is and what the culture-code's for it are -you will then be able to delete the one that is not your sites default culture. This will fix this issue (you may need to do a tools->application domain recycle for the updated data to be returned)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
8/18/2014 9:38 AM
 

Hi,

I also think that this is a PortalSettings issue some how linked to the localization nature of my site. I finally try to setup a new installation with the same version juste to be able to try reproduce the case and improve my understanding of the problem. After adding French language pack and activate it, the errors begin to occur again. I finally solved the problem by deleting all records in the PortalSettings table. As i read in the provided forum link, the problem seems to be present since a long time ?!?!?

I could try to make another installation and check for a duplicate setting in the PortalSettings table. I'll get back as soon as possible with some details. 

Thanks

 
New Post
8/18/2014 5:39 PM
 
are you using the built in localization support or are you using a custom 3rd party extension?

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ... An item with the same key has already been added. An item with the same key has already been added.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out