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 391:        if (!string.IsNullOrEmpty(Request.QueryString["q"]) && !"all".Equals(Request.QueryString["q"]))
Line 392:        {
Line 393:            seo = seo.Where(p => p.Quadrant.QuadrantName.ToLower().Replace(" ", "-") == Request.QueryString["q"]).ToList();
Line 394:        }
Line 395:        else

Source File: c:\inetpub\wwwroot\ManakHomes.ca\show-homes.aspx.cs    Line: 393

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   show_homes.<GetPageSeo>b__f(StaticPageSeo p) in c:\inetpub\wwwroot\ManakHomes.ca\show-homes.aspx.cs:393
   System.Linq.WhereListIterator`1.MoveNext() +81
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +452
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +72
   show_homes.GetPageSeo() in c:\inetpub\wwwroot\ManakHomes.ca\show-homes.aspx.cs:393
   show_homes.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\ManakHomes.ca\show-homes.aspx.cs:80
   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.4494.0