Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Niels Lynggaard 190 posts 548 karma points
    Mar 20, 2013 @ 11:07
    Niels Lynggaard
    0

    One content type broken all of a sudden (key allready exsists)

    My main contenttype is broken all of a sudden..

    When I try to edit a node of this contenttype (textpage), Umbraco throws this error.. It seems its confused about a property all of a sudden?

    Any ideas?

    I'm using Umbraco 6.0

    An item with the same key has already been added.

    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 item with the same key has already been added.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

    [ArgumentException: An item with the same key has already been added.]
       System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +14169316
       umbraco.controls.ContentControl.AddControlNew(Property p, TabPage tp, String Caption) +285
       umbraco.controls.ContentControl.CreateChildControls() +859
       System.Web.UI.Control.EnsureChildControls() +189
       umbraco.controls.ContentControl.OnInit(EventArgs e) +51
       System.Web.UI.Control.InitRecursive(Control namingContainer) +186
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +189
       umbraco.cms.presentation.editContent.OnInit(EventArgs e) +1167
       System.Web.UI.Control.InitRecursive(Control namingContainer) +186
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2098
    

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Mar 20, 2013 @ 12:43
    Jeroen Breuer
    0

    I've seen this error before. Usually restarting the website fixed the problem.

    Jeroen

  • Niels Lynggaard 190 posts 548 karma points
    Mar 20, 2013 @ 13:13
    Niels Lynggaard
    0

    Tried that and deleting the xml cache as well..

    I think that  what *may* have happened that I edited the contenttype added/deleted the same property a few times. I have a DB backup, so I guess I'll try to restore it instead..

Please Sign in or register to post replies

Write your reply to:

Draft