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 97:                                   select a;
Line 98: 
Line 99:                 publicationGUID = getLatestEd.FirstOrDefault().PublicationGUID.ToString();
Line 100:            }
Line 101:

Source File: c:\Websites\subscriber.pagesuite-professional.co.uk\www\custompages\JP\jp.master.cs    Line: 99

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   custompages_JP_jp.Page_Load(Object sender, EventArgs e) in c:\Websites\subscriber.pagesuite-professional.co.uk\www\custompages\JP\jp.master.cs:99
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +117
   System.Web.UI.Control.LoadRecursive() +184
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2854


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