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 20:             errMessage.Text = Request["errMessage"].ToString();
Line 21:         else
Line 22:             errMessage.Text = Session["errMessage"].ToString();
Line 23:     }
Line 24: }

Source File: f:\websites\f2786-xiangyayiyao-d9fc60\www\WishManageSite\eorr\Error.aspx.cs    Line: 22

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   MainWeb_Error.Page_Load(Object sender, EventArgs e) in f:\websites\f2786-xiangyayiyao-d9fc60\www\WishManageSite\eorr\Error.aspx.cs:22
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43
   System.Web.UI.Control.OnLoad(EventArgs e) +73
   System.Web.UI.Control.LoadRecursive() +52
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2184


Version Information: Microsoft .NET Framework Version:2.0.50727.3655; ASP.NET Version:2.0.50727.3658