'/' 應用程式中發生伺服器錯誤。

並未將物件參考設定為物件的執行個體

描述: 在執行目前 Web 要求的過程中發生未處理的例外情形。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外詳細資訊: System.NullReferenceException: 並未將物件參考設定為物件的執行個體

原始程式錯誤:


行 42: If chkFrontStaffLogin() = False Then
行 43:   staffurl = System.IO.Path.GetFileName(Request.PhysicalPath)
行 44:   Response.Write("<Script>alert(""?典??芰?亦頂蝯?!"");top.location.replace('/staffLogout.aspx?staffurl=" & staffurl & "?" & Request.ServerVariables("Query_string").Replace("&", "@") & "');</script>")
行 45:   Response.End()
行 46: End If

原始程式檔: D:\Source\WebSite\staffHandbook.aspx    行: 44

堆疊追蹤:


[NullReferenceException: 並未將物件參考設定為物件的執行個體]
   ASP.staffhandbook_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in D:\Source\WebSite\staffHandbook.aspx:44
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266


版本資訊: Microsoft .NET Framework 版本:2.0.50727.9061; ASP.NET 版本:2.0.50727.9062