none
“/”应用程序中的服务器错误。 未将对象引用设置到对象的实例。 RRS feed

  • 问题

  • 说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

    异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。

    源错误:

    行 20:         <p>
    行 21: 		
    行 22:             <a href='<%=Request.UrlReferrer.ToString() %>'>点击返回上次浏览页</a></p>
    行 23:     </form>
    行 24: </body>

    源文件: e:\WebSite2\error.aspx    行: 22

    堆栈跟踪:

    [NullReferenceException: 未将对象引用设置到对象的实例。]
       ASP.error_aspx.__Renderform1(HtmlTextWriter __w, Control parameterContainer) in e:\WebSite2\error.aspx:22
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +2065851
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
       System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +59
       System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +68
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
       System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +37
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
       System.Web.UI.Page.Render(HtmlTextWriter writer) +26
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896
    
    我是个新手,最近2天被这样那样的问题搞的头都大了。我用的 vs2005与sql2005
    2009年9月15日 7:10

答案

全部回复