Server Error in '/' Application.

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.ThrowHelper.ThrowArgumentException(ExceptionResource resource) +60
   System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +14594072
   BIMCO.Core.Helpers.TokenReplacer.SetPortReplaceNode(Item baseItem) in C:\Projects\BIMCO.Website.Sitecore93\BIMCO.Core\Helpers\TokenReplacer.cs:46
   BIMCO.Core.Helpers.TokenReplacer.ReplaceModelTokens(T model) in C:\Projects\BIMCO.Website.Sitecore93\BIMCO.Core\Helpers\TokenReplacer.cs:99
   BIMCO.Web.layouts.BIMCO.Sublayout.BaseSublayout`1.OnLoad(EventArgs e) in C:\Projects\BIMCO.Website.Sitecore93\BIMCO.Web\layouts\BIMCO\Sublayout\BaseSublayout.cs:48
   BIMCO.Web.layouts.BIMCO.Sublayout.Header.OnLoad(EventArgs e) in C:\Projects\BIMCO.Website.Sitecore93\BIMCO.Web\layouts\BIMCO\Sublayout\GlobalHeader.ascx.cs:59
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0