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 93: 			ConcreteData.ConcreteDataContainer cont = new ConcreteData.ConcreteDataContainer();
Line 94: 			ConcreteData.DeceasedPerson dp = cont.Memorials.OfType<ConcreteData.DeceasedPerson>().Where(o => o.Id == memid).FirstOrDefault();
Line 95: 			ret += "eternity:" + (dp.EternitySeal ? "true" : "false") + ", ";
Line 96: 			ret += "tombstone:" + ((dp.Tombstone > 1) ? "true" : "false") + ", ";
Line 97: 

Source File: c:\WEBS\Webs\memmento.com\www\MainPages\Memorial.aspx.cs    Line: 95

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   WBF.MainPages.Views.Memorial.GetBoughtData() in c:\WEBS\Webs\memmento.com\www\MainPages\Memorial.aspx.cs:95
   WBF.MainPages.Views.Memorial.SetData() in c:\WEBS\Webs\memmento.com\www\MainPages\Memorial.aspx.cs:140
   WBF.MainPages.Views.MemorialPresenter.OnViewInitialized() in d:\Developer\Webs\memmento.com\www\Current\WBF\MainPages\Views\MemorialPresenter.cs:32
   WBF.MainPages.Views.Memorial.Page_Load(Object sender, EventArgs e) in c:\WEBS\Webs\memmento.com\www\MainPages\Memorial.aspx.cs:582
   System.Web.UI.Control.OnLoad(EventArgs e) +107
   System.Web.UI.Control.LoadRecursive() +89
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1532


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