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) +59
   System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +803
   WebPartGroupMenu.main.rptMenu_ItemDataBound(Object sender, RepeaterItemEventArgs e) in c:\Programming\VirtualStore\VirtualStoreSystem\trunkmain\src-dev\WebPartGroupMenu\main.ascx.cs:542
   System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) +138
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +194
   System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) +297
   System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) +113
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +80
   WebPartGroupMenu.main.rptMenu_ItemDataBound(Object sender, RepeaterItemEventArgs e) in c:\Programming\VirtualStore\VirtualStoreSystem\trunkmain\src-dev\WebPartGroupMenu\main.ascx.cs:553
   System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) +138
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +194
   System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) +297
   System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) +113
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +80
   WebPartGroupMenu.main.OnPreRender(EventArgs e) in c:\Programming\VirtualStore\VirtualStoreSystem\trunkmain\src-dev\WebPartGroupMenu\main.ascx.cs:389
   System.Web.UI.Control.PreRenderRecursiveInternal() +200
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7479


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