Server Error in '/' Application.

Key cannot be null.
Parameter name: key

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.ArgumentNullException: Key cannot be null.
Parameter name: key

Source Error:


Line 30:       IGallery         handler = DBFactory.createFactory().createGalleryHandler();
Line 31:       ContentContainer cc	     = handler.getGallery(galleryId);
Line 32:       gallery                  = (Gallery)cc.Data[cc.Key];
Line 33: 
Line 34:       // update position

Source File: d:\www\www1114\content\ContentGalleryDetail.ascx.cs    Line: 32

Stack Trace:


[ArgumentNullException: Key cannot be null.
Parameter name: key]
   System.Collections.Hashtable.get_Item(Object key) +7701019
   Ch.Bohnengarten.Web.content.ContentGalleryDetail.Prepare() in d:\www\www1114\content\ContentGalleryDetail.ascx.cs:32
   Ch.Bohnengarten.Index.Page_Load(Object sender, EventArgs e) in d:\www\www1114\index.aspx.cs:70
   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.8975