Copied to clipboard

Flag this post as spam?

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


  • Rik Helsen 670 posts 873 karma points
    Mar 22, 2016 @ 14:14
    Rik Helsen
    0

    An item with the same key has already been added.

    We have this older website running Umbraco 4.7.2, and it seems to be restarting an awfull many times (+90 times a day), in the logtable, we found a lot of errors like this.

    Any suggestions on how to fix these ?

    Kind regards Rik

    Can't import MacroEngine 'umbraco.MacroEngines.RazorMacroEngine': System.ArgumentException: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
    
       at umbraco.cms.businesslogic.macro.MacroEngineFactory.getEngines(List1 types)
    Can't import MacroEngine 'uComponents.Core.MacroEngines.StaticFileMacroEngine': System.ArgumentException: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
    
       at umbraco.cms.businesslogic.macro.MacroEngineFactory.getEngines(List1 types)
    Can't import MacroEngine 'uComponents.Core.MacroEngines.XsltMacroEngine': System.ArgumentException: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
    
       at umbraco.cms.businesslogic.macro.MacroEngineFactory.getEngines(List1 types)
    Can't import MacroEngine 'uComponents.Core.MacroEngines.XsltMacroEngine': System.ArgumentException: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
    
       at umbraco.cms.businesslogic.macro.MacroEngineFactory.getEngines(List1 types)
    Can't import MacroEngine 'umbraco.MacroEngines.RazorMacroEngine': System.ArgumentException: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
    
       at umbraco.cms.businesslogic.macro.MacroEngineFactory.getEngines(List1 types)
    Can't import MacroEngine 'umbraco.MacroEngines.RazorMacroEngine': System.ArgumentException: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
    
       at umbraco.cms.businesslogic.macro.MacroEngineFactory.getEngines(List1 types)
    Can't import MacroEngine 'uComponents.Core.MacroEngines.StaticFileMacroEngine': System.ArgumentException: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
    
       at umbraco.cms.businesslogic.macro.MacroEngineFactory.getEngines(List1 types)
    Can't import MacroEngine 'umbraco.MacroEngines.RazorMacroEngine': System.ArgumentException: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
    
       at umbraco.cms.businesslogic.macro.MacroEngineFactory.getEngines(List1 types)
    Can't import MacroEngine 'uComponents.Core.MacroEngines.StaticFileMacroEngine': System.ArgumentException: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
    
       at umbraco.cms.businesslogic.macro.MacroEngineFactory.getEngines(List1 types)
    Can't import MacroEngine 'uComponents.Core.MacroEngines.XsltMacroEngine': System.ArgumentException: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
    
       at umbraco.cms.businesslogic.macro.MacroEngineFactory.getEngines(List1 types)
    Can't import MacroEngine 'uComponents.Core.MacroEngines.StaticFileMacroEngine': System.ArgumentException: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
    
       at umbraco.cms.businesslogic.macro.MacroEngineFactory.getEngines(List1 types)
    Can't import MacroEngine 'uComponents.Core.MacroEngines.XsltMacroEngine': System.ArgumentException: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
    
       at umbraco.cms.businesslogic.macro.MacroEngineFactory.getEngines(List1 types)
    Can't import MacroEngine 'uComponents.Core.MacroEngines.XsltMacroEngine': System.ArgumentException: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
    
       at umbraco.cms.businesslogic.macro.MacroEngineFactory.getEngines(List1 types)
    Can't import MacroEngine 'umbraco.MacroEngines.RazorMacroEngine': System.ArgumentException: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
    
       at umbraco.cms.businesslogic.macro.MacroEngineFactory.getEngines(List1 types)
    Can't import MacroEngine 'uComponents.Core.MacroEngines.XsltMacroEngine': System.ArgumentException: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
    
       at umbraco.cms.businesslogic.macro.MacroEngineFactory.getEngines(List1 types)
    Can't import MacroEngine 'umbraco.MacroEngines.RazorMacroEngine': System.ArgumentException: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
    
       at umbraco.cms.businesslogic.macro.MacroEngineFactory.getEngines(List1 types)
    Can't import MacroEngine 'uComponents.Core.MacroEngines.StaticFileMacroEngine': System.ArgumentException: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
    
       at umbraco.cms.businesslogic.macro.MacroEngineFactory.getEngines(List1 types)
    
  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 23, 2016 @ 10:02
    Jan Skovgaard
    0

    Hi Rik

    Did this just start to happen out of the blue? Or were there any changes made to the site after, which this started to happen?

    Any duplicate packages / packages using the same id for some reason?

    Longshot: Perhaps check the package xml located somewhere in the /App_Data/ folder if I remember correctly and see if there are duplicate id's?

    /Jan

  • Rik Helsen 670 posts 873 karma points
    May 18, 2016 @ 12:09
    Rik Helsen
    0

    this has happened as long as we have logs

    I don't immediatly see what GUID you refer to...

    enter image description here

    packageGUID seems to always be unique?

    my oldest logs from db: enter image description here

  • Jose Cerqueiro 25 posts 84 karma points
    Mar 03, 2017 @ 12:43
    Jose Cerqueiro
    0

    Hi Rik,
    We are having the same issue with a 4.7.2 install and I'm wondering if you found how to fix this.

    Thanks in advance

Please Sign in or register to post replies

Write your reply to:

Draft