Server Error in '/' Application.

The given key was not present in the dictionary.

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.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

Source Error:


Line 24:                 return default(T);
Line 25: 
Line 26:             return ((T)ObjectMapper.GetCache<T,T2>()[ID]).Clone();
Line 27:         }
Line 28: 

Source File: c:\deployments\prod\www.spazioesclusivo.com\App_Code\MappedObject.cs    Line: 26

Stack Trace:


[KeyNotFoundException: The given key was not present in the dictionary.]
   System.ThrowHelper.ThrowKeyNotFoundException() +28
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +7807408
   MappedObject`2.Load(Int32 ID) in c:\deployments\prod\www.spazioesclusivo.com\App_Code\MappedObject.cs:26
   offerte_Dettaglio.Page_Load(Object sender, EventArgs e) in c:\deployments\prod\www.spazioesclusivo.com\offerte\Dettaglio.aspx.cs:13
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8974