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 addedAn item with the same key has already been added
Previous
 
Next
New Post
9/12/2014 9:19 AM
 
Hello,
I have upgrade my site to DNN 7.3.2 and since this update some sites have problems with opening the Website Settings (Admin, Website settings) or the Page settings (Edit Page, Page Settings).

I get the following error: “An item with the same key has already been added”
• I have executed the script “to fix issues with HostSettings” (AdjustDNNHostSettings732.sql) See: http://dnnscript.codeplex.com/releases/view/132398.
• After this, I cleared the cache
• After this I recycled the application domain
But still I get this error. “An item with the same key has already been added”

After this I have check the “PortalSettings” table if there are any duplicate settings for this portal. All settings are unique.

The site as only one language, nl-nl.

Somebody any tips?



Grtx.
Ronald



See Error at the bottom.

Error
AssemblyVersion:7.3.2
PortalID:8
PortalName:Brasserij Babbilage
UserID:4
UserName:Ron
ActiveTabID:381
ActiveTabName:Home
RawURL:/Home/tabid/381/ctl/Tab/action/edit/activeTab/settingTab/Default.aspx?popUp=true
AbsoluteURL:/Default.aspx
AbsoluteURLReferrer:http://www.babbilage.nl/Home.aspx
UserAgent:Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:318936c5-8046-4492-a8e4-a0b5a44e8e92
InnerException:An item with the same key has already been added.
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:System.ThrowHelper.ThrowArgumentException
StackTrace:
Message:
DotNetNuke.Services.Exceptions.PageLoadException: An item with the same key has already been added. ---> 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 System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at DotNetNuke.Web.UI.WebControls.DnnSkinComboBox. (EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---
Source:
Server Name: vps

 
New Post
9/12/2014 10:09 AM
 

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/12/2014 10:30 AM
 

Hello Sebastian,

I as i try to describe, i have execute the script from that page: http://www.dnnsoftware.com/community-blog/cid/155044/fixing-portalsettings-issue-on-multilingual-websites-in-dnn-732

Also I have execute your script, that you have published on CodePlex, see: http://dnnscript.codeplex.com/releases/view/132398

Although I still have the same error.
(Also it look like I only have this error on one portal, all others works ok)

Do you have any more tips?

Thanks in advance 

Grtx. Ronald

 
New Post
9/12/2014 10:40 AM
 
Ronald,
please check portalsettings in your Website and make sure, there are no duplicate combinations of portalID and SettingName.
Another reason could be misspelled names in Skins table (there is a known capitalization issue)

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/21/2014 10:10 AM
 

Hello Sebastian,

Thanks for your support. I was unable to find any duplicates in the Portal Settings. Also I don't see misspelled names in Skins table.

Unfortunately, due time issue's I had to reinstall the website. (I made export for each page in the website, Installed a new website, and restored the exported pages).

After that the site was functioning without errors.

Kind regards,

Ronald

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...An item with the same key has already been addedAn 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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out