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:


Line 153:        }
Line 154:
Line 155:        webUser = WebUser.GetCurrent();
Line 156:        if (WebUser.CurrentId != -1)
Line 157:        {

Source File: \\fs01\webcontent\wwwroot\anderson-auction.com\wwwroot\ItemDetail.aspx.cs    Line: 155

Stack Trace:


[ArgumentException: An item with the same key has already been added.]
   System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) +52
   System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +165
   System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) +11
   ObjectCache.AddObject(ObjectType type, Int32 id, Object obj) +133
   Currency.Get() +792
   Currency.Get(Int32 id) +216
   Currency.Default() +217
   WebUser..ctor() +673
   WebUser.GetCurrent() +63
   ItemDetail.Page_Load(Object sender, EventArgs e) in \\fs01\webcontent\wwwroot\anderson-auction.com\wwwroot\ItemDetail.aspx.cs:155
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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