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 44:         string details = ConfigurationManager.AppSettings["ErrorDetails"].ToString().Replace("\\n", "<br />");
Line 45:         details = string.Format(details, "/articles/article.cshtml", "Page Loading", ex.GetType().ToString(), ex.Message.ToString(), ex.StackTrace.ToString());
Line 46:         dh.Send(details + "<br /><br />IP: " + Request.ServerVariables["REMOTE_ADDR"].ToString() + "<br /><br />Previous URL: " + Request.ServerVariables["HTTP_REFERER"].ToString());
Line 47: 
Line 48:         err = dh.FriendlyError().ToString();

Source File: c:\inetpub\wwwroot\johndawsoninsurance.com\www\articles\article.cshtml    Line: 46

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP._Page_articles_article_cshtml.Execute() in c:\inetpub\wwwroot\johndawsoninsurance.com\www\articles\article.cshtml:46
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +251
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +98
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +184
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +85
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +106
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +141


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