标题:“/”应用程序中的服务器错误。
只看楼主
缘沙
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2009-8-4
 问题点数:0 回复次数:0 
“/”应用程序中的服务器错误。
求助!当我进入某系统时出现了以下问题,郁闷,不知怎么解决,望各位朋友帮帮忙,谢谢!

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

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

源错误:


行 243:
行 244:                        HuakeInfo.ClassRmtDb ClsDB = new HuakeInfo.ClassRmtDb();
行 245:                        ClsDB.ExecSQL("UPDATE T_Session Set RefTime=getdate(),UserName='" + UserName.Text + "',UserType='学生' Where SessionID='" + Request.Cookies["SID"].Value + "'");
行 246:
行 247:                        Response.Redirect("~/Student/");
 

源文件: d:\NewJwSys\JwWebSite\Default.aspx.cs    行: 245

堆栈跟踪:


[NullReferenceException: 未将对象引用设置到对象的实例。]
   _Default.ButtonLogin_Click(Object sender, EventArgs e) in d:\NewJwSys\JwWebSite\Default.aspx.cs:245
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

 


--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.3082; 版本:2.0.50727.3082
搜索更多相关主题的帖子: 服务器 应用程序 
2009-08-04 12:59



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-281512-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.918790 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved