Error: item with the same key has already been added
Last Post 16 Mar 2012 02:55 PM by awednnmaster. 6 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Andre New Member New Member Posts:2 Avatar
--
26 Jan 2012 09:15 AM  
Hi,

We are upgrading one of our DNN sites from version 5.4.2 to 5.6.6
For this upgrade we also are upgrading to the latest version of MPUS (3.1.1.0)

For this upgrade we followed the steps as stated here: http://www.dnnmasters.com/help/html/MPUS-X/

After the upgrade we received errors stating: An item with the same key has already been added

The stacktrace showed:


[ArgumentException: An item with the same key has already been added.]
System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) +56
System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +10417566
System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) +12
DNNMasters.MPUS.X.Engine.Licensing.LicenseUtilsConfig.ReturnPortalAliasByTabId(Int32 tabId) +1099
DNNMasters.MPUS.X.Engine.Licensing.LicenseUtilsConfig.FilterCheckLicenseIsValid(HttpApplication app, HttpRequest request) +204
DNNMasters.MPUS.X.HttpModule.Module.context_ReleaseRequestState(Object sender, EventArgs e) +61
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171


We indeed have several ports each with two aliases. When removing the aliases in the dnn_PortalAlias table, the error was gone. However, we need those aliases!

Is the ReturnPortalAliasByTabId taking multiple aliases for a single port into account when adding the found keys into the dictionary?

Best regards,

Andre van der Plas
DNNMasters Advanced Member Advanced Member Posts:774 Avatar
--
26 Jan 2012 12:17 PM  
Version 3.1.x works on dnn 6.+ only.
As for the keys you probably had the same alias twice on different portals.
Andre New Member New Member Posts:2 Avatar
--
27 Jan 2012 09:49 AM  
Hi,

It seems indeed we now have an MPUS version that is meant to be used for dnn 6+.
We retrieved our zip file from here: http://www.dnnmasters.com/support-r...EntryId=9, and there was only one zip file available.
Could you please tell us where we can find the zip file that is compatible with our 5.6.6 dnn version?

tnx!
DNNMasters Advanced Member Advanced Member Posts:774 Avatar
--
27 Jan 2012 01:28 PM  

Only version 3.x is available as trial.

If you purchased version 2 on Snowcovered you can download it there.

awednnmaster New Member New Member Posts:2 Avatar
--
16 Mar 2012 11:14 AM  
Hello,

I'm getting the same error on ours. We first noticed the sitemap page with the error dnnmasters seo sitemap license is expired. I purchased the license and registered it to my site back in February. Was I supposed to install the license number somewhere? I then clicked on manage --> license and now I'm seeing this error. A critical error has occurred. An item with the same key has already been added.

We are running DNN 06.00.02 with the dnn masters seo sitemap 5.0.25. How would I fix this issue?

Thanks.
DNNMasters Advanced Member Advanced Member Posts:774 Avatar
--
16 Mar 2012 02:30 PM  

First of all please do not open multiple support channels for an issue - you have opened three and that's two too much.

Second - there are serious security issues in your version of dnn so you should upgrade.

Third - make sure that there is default alias set under admin / site settings/ aliases and that it's the same alias that you used to register license. This will fix your problem.

awednnmaster New Member New Member Posts:2 Avatar
--
16 Mar 2012 02:55 PM  
Thank you for your help and recommendations.

Have a great day.
You are not authorized to post a reply.