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 4:  	
Line 5:      var db = Database.Open("LRDC");
Line 6:      var id = Request.QueryString["id"].Replace("'", "''");
Line 7:      if (id.IsInt() != true)
Line 8:      {

Source File: d:\sites\lrdc\people\staff-detail.cshtml    Line: 6

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP._Page_people_staff_detail_cshtml.Execute() in d:\sites\lrdc\people\staff-detail.cshtml:6
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +251
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +89
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +172
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +103
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +138


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