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 425:    {
Line 426:        DateTime LastSessionUpdate = FDFC.Utilities.NullSafeDate(HttpContext.Current.Session["LastSessionUpdate"]);
Line 427:        DateTime LastAttributeUpdate = FDFC.ObjectAttribute.GetLastAttributeUpdateDate(this.Dealer.Id);
Line 428:
Line 429:        int DateTimeCompare = DateTime.Compare(LastSessionUpdate, LastAttributeUpdate);

Source File: d:\Websites\BigStone_Websites\App_Code\CurrentDealer.cs    Line: 427

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   CurrentDealerSingleton.CheckIfSessionNeedsUpdating() in d:\Websites\BigStone_Websites\App_Code\CurrentDealer.cs:427
   CurrentDealerSingleton..ctor(String WebDirectory, DealerIdentifierType IdentifierType) in d:\Websites\BigStone_Websites\App_Code\CurrentDealer.cs:64
   CurrentDealerSingleton.GetInstance(String WebDirectory, DealerIdentifierType IdentifierType) in d:\Websites\BigStone_Websites\App_Code\CurrentDealer.cs:76
   BasePage.OnPreInit(EventArgs e) in d:\Websites\BigStone_Websites\App_Code\BaseClasses.cs:23
   System.Web.UI.Page.PerformPreInit() +45
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1109


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