Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 31: 
Line 32:         //For Amazon Widget
Line 33:         this.Context.Items.Add("Band_ID", album.BandId);
Line 34:     }
Line 35: 

Source File: c:\inetpub\wwwroot\jazzmusicarchives.com\Album.aspx.cs    Line: 33

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Album.LoadContextObjects() in c:\inetpub\wwwroot\jazzmusicarchives.com\Album.aspx.cs:33
   BasePage.Page_PreInit(Object sender, EventArgs e) in c:\inetpub\wwwroot\jazzmusicarchives.com\App_Code\BasePage.cs:26
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnPreInit(EventArgs e) +11692095
   System.Web.UI.Page.PerformPreInit() +46
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +334


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