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 25:         DAL.Artist artist = artistsBll.GetArtist(Request["artist"]);
Line 26:         this.Context.Items.Add("Artist", artist);
Line 27:         Page.Title = FormatUtils.FormatBandName(artist.BandName) + " search and add videos";
Line 28: 		
Line 29: 		

Source File: c:\inetpub\wwwroot\metalmusicarchives.com\AddVideo.aspx.cs    Line: 27

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   AddVideo.LoadContextObjects() in c:\inetpub\wwwroot\metalmusicarchives.com\AddVideo.aspx.cs:27
   BasePage.Page_PreInit(Object sender, EventArgs e) in c:\inetpub\wwwroot\metalmusicarchives.com\App_Code\BasePage.cs:26
   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