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 82:     {
Line 83:         Exception ex = Server.GetLastError();
Line 84:         String strError = "<b>Error Message: </b><br>" + ex.Message.ToString() +
Line 85:                     "<b>Source: </b><br>" + ex.Source.ToString() +
Line 86:                     "<br><b>Stack Trace:</b><br>" + ex.StackTrace.ToString();

Source File: c:\inetpub\wwwroot\currentMysolitaire\Templates\Template5PPWApearl.aspx.cs    Line: 84

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Templates_Template5PPWApearl.Page_Error(Object sender, EventArgs e) in c:\inetpub\wwwroot\currentMysolitaire\Templates\Template5PPWApearl.aspx.cs:84
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.TemplateControl.OnError(EventArgs e) +142
   System.Web.UI.Page.HandleError(Exception e) +106
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +9531
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +356
   System.Web.UI.Page.ProcessRequest() +76
   System.Web.UI.Page.ProcessRequest(HttpContext context) +70
   ASP.templates_template5ppwapearl_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\d3c5aad8\c7a6a349\App_Web_template5ppwapearl.aspx.d78c169f.7zhdyxtx.0.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +508
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +92


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