DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

An entry with the same key already exists.

Sort:
You are not authorized to post a reply.





New Around Here





    Hello,

    I emptied my trash bin to get rid of all deleted pages and modules. The next thing to happen is that when I click the edit pencil (at any page), an error 500 occurs; An entry with the same key already exists. is returned.

    Here is the dump...

     

    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.Web.Components.Controllers.ControlBarController.GetCategoryDesktopModules(Int32 portalId, String category, String searchTerm) at Dnn.EditBar.UI.Items.AddModuleMenu.Visible() at System.Linq.Enumerable.WhereListIterator`1.MoveNext() at System.Linq.Buffer`1..ctor(IEnumerable`1 source) at System.Linq.OrderedEnumerable`1.d__1.MoveNext() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at Dnn.EditBar.UI.Controllers.EditBarController.GetMenuItems() at Dnn.EditBar.UI.Controllers.ContentEditorManager.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at Dnn.EditBar.UI.HttpModules.EditBarModule.OnSkinInit(Object sender, SkinEventArgs e) at DotNetNuke.UI.Skins.Skin.InvokeSkinEvents(SkinEventType skinEventType) at DotNetNuke.UI.Skins.Skin.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at DotNetNuke.Framework.DefaultPage.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

     

    I appreciate a lot for any help.






    Veteran Member





      If this is still an issue, please provide some more details such as the DNN version that you are using,

      I assume that the site was working correctly before you emptied the Recycle Bin?

      Can you restore the site to a time before you did that?
      Joe Craig
      DNN MVP
      Patapsco Research Group





      New Around Here





        1. Yes, it's still an issue. I'm stuck. I can't edit any page. I appreciate any help.
        2. My DNN is version 9.0.0
        3. I used my app version prior to the problem and still the problem persists.

        Thanks for making my issue active.





        Veteran Member





          Cris,

          DNN 9.0.0 had a lot of issues, so first thing I would try is to upgrade, at least to 9.1.1 in a first step and see if the issue is still there. But anyway, you should upgrade to the latest version following the suggested upgrade path.

          Happy DNNing!
          Michael

          Michael Tobisch
          DNN★MVP

          dnnWerk Austria
          DNN Connect
          You are not authorized to post a reply.

          These Forums are dedicated to the discussion of DNN Platform.

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

          1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
          2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
          3. 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.
          4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
          5. No Flaming or Trolling.
          6. No Profanity, Racism, or Prejudice.
          7. Site Moderators have the final word on approving / removing a thread or post or comment.
          8. English language posting only, please.

          Would you like to help us?

          Awesome! Simply post in the forums using the link below and we'll get you started.

          Get Involved