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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Upgrade prolem to 5.0 with trouble - stopping problemUpgrade prolem to 5.0 with trouble - stopping problem
Previous
 
Next
New Post
1/22/2009 9:33 AM
 

Hello,

I upgraded my DNN 4.9 to 5.0 following the insctructions. Everything seems gone well, in fact the site works.

But if I try to connect into the site making the login, the following error happen. Any suggestions ? Thanks a lot in advance.

Server Error in '/' Application.

An entry with the same key already exists.

 

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: An entry with the same key already exists.

Source Error:

Line 55:                     cboPermission.Enabled = True
Line 56: 
Line 57:                     cboDesktopModules.DataSource = DesktopModuleController.GetPortalDesktopModules(PortalSettings.PortalId).Values
Line 58:                     cboDesktopModules.DataBind()
Line 59:                     cboDesktopModules.Items.Insert(0, New ListItem("<" + Localization.GetString("SelectModule", LocalResourceFile) + ">", "-1"))

Source File: D:\DNN4\Admin\ControlPanel\IconBar.ascx.vb    Line: 57

Stack Trace:

[ArgumentException: An entry with the same key already exists.]
   System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) +48
   System.Collections.Generic.SortedList`2.Add(TKey key, TValue value) +1821512
   DotNetNuke.Entities.Modules.DesktopModuleController.GetPortalDesktopModules(Int32 portalID) +233
   DotNetNuke.UI.ControlPanels.IconBar.BindData() in D:\DNN4\Admin\ControlPanel\IconBar.ascx.vb:57
   DotNetNuke.UI.ControlPanels.IconBar.Page_Load(Object sender, EventArgs e) in D:\DNN4\Admin\ControlPanel\IconBar.ascx.vb:210

[ModuleLoadException: Errore]
   DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, Control ctrl, Exception exc, Boolean DisplayErrorMessage) +543
   DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(Control ctrl, Exception exc, Boolean DisplayErrorMessage) +225
   DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(Control ctrl, Exception exc) +32
   DotNetNuke.UI.ControlPanels.IconBar.Page_Load(Object sender, EventArgs e) in D:\DNN4\Admin\ControlPanel\IconBar.ascx.vb:258
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436

[PageLoadException: Errore]
   DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +332
   DotNetNuke.Framework.PageBase.OnError(EventArgs e) +422
   System.Web.UI.Page.HandleError(Exception e) +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7341
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213
   System.Web.UI.Page.ProcessRequest() +86
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.default_aspx.ProcessRequest(HttpContext context) +29
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

 
New Post
1/22/2009 5:55 PM
 

Hi Massimo,

There are some real issues upgrading to DNN5 (believe me I've been there), you just have to have a quick scan through the entries here to see the problems that people are having with the new version. The general advice seems to be to wait till version 5.1 is released, with any luck it will address some of the problems. Like most others I'm waiting patiently.

 
New Post
1/22/2009 6:58 PM
 

I seem to be  having problems as well..

 

I should have guessed it wasn't gonna go smooth when I tried to upgrade an 4.8 test platform :P

 

oh well stuck at

DotNetNuke Error: - Version 05.00.00


 

Error An error has occurred.
An error has occurred.
 
New Post
3/3/2009 4:56 AM
 

Hi Massimo,

Have a look at the database table "DesktopModules" inside your host database.
Look for records with matching values in the column "FriendlyName".

Alter these values so that they are unique and your error should disappear.
 

Greetings,

Alex Reinermann


Alex Reinermann
Linked in
Alex Reinermann - ICATT interactive media Microsoft Certified Professional Developer - Web Developer Microsoft Certified Technology Specialist - Web Developer - Distributed Applications
 
New Post
9/10/2009 3:30 PM
 

I'm trying to upgrade a 4.9.2 install to 5.1.2 and get the error ...

An error has occurred.
DotNetNuke.Services.Exceptions.ModuleLoadException: An entry with the same key already exists. ---> System.ArgumentException: An entry with the same key already exists. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.SortedList`2.Add(TKey key, TValue value) at DotNetNuke.Entities.Modules.DesktopModuleController.GetPortalDesktopModules(Int32 portalID) at DotNetNuke.UI.ControlPanels.IconBar.BindData() at DotNetNuke.UI.ControlPanels.IconBar.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

and the modules, pane, insert etc drop down boxes are all blank in the control panel.  I looked in the desktopmodules table like Alex suggested and found two entries for "Blog" but changing one of them does not solve the problem.

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Upgrade prolem to 5.0 with trouble - stopping problemUpgrade prolem to 5.0 with trouble - stopping problem


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