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 1384:                publicationGuid = new Guid(Request.QueryString["pubid"]);
Line 1385:
Line 1386:                editionGuid = (from a in data.EDITIONs
Line 1387:                               where a.PublicationGUID == publicationGuid && a.IsLive == true && (a.IsDeleted == null || a.IsDeleted == false) && a.PublishDate <= DateTime.Now
Line 1388:                               orderby a.PublishDate descending

Source File: c:\inetpub\wwwroot\Default.aspx.cs    Line: 1386

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   _Default.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\Default.aspx.cs:1386
   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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2854


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