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 137:
Line 138:                int personId = GetPersonId();
Line 139:				bool isAdmin = _presenter.IsAdmin(personId);
Line 140:				BoughtLit.Text = GetBoughtData();
Line 141:				PersonIdLit.Text = GetPersonId().ToString();

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

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   WBF.MainLogic.Services.ConcreteDataLogic.IsAdmin(Int32 personId) in d:\Developer\Webs\memmento.com\www\Current\WBF\MainLogic\Services\ConcreteDataLogic.cs:49
   WBF.MainPages.Views.MemorialPresenter.IsAdmin(Int32 personId) in d:\Developer\Webs\memmento.com\www\Current\WBF\MainPages\Views\MemorialPresenter.cs:835
   WBF.MainPages.Views.Memorial.SetData() in c:\WEBS\Webs\memmento.com\www\MainPages\Memorial.aspx.cs:139
   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