你的Session是否超时了?如果用的是系统自动管理的Session对象,那么超时很容易被系统kill了的,从这方面试试?
解决方案 »
- XML读取元素的值用value为什么不行
- C# 时间段问题
- 怎样在安装程序中注册COM组件和非托管的DLL?急! 急! 急!
- 怎么定义用字符串索引的数组,使用方式是类似Session["username"]这样用。
- 请问如何在.Net中用MD5函数,在加密中文字串时,会出现与ASP中的MD5不一致的现象
- 怪事了,手工行,用openfiledialog就不行了
- combobox数据绑定之后SelectedIndexChanged事件无法触发咋办?
- 在vs2005中添加COM组件“Shockware Flash Object”后,“工具箱”不显示怎么回事?
- ReadLine 能读数吗?
- 如何维护一对多关系?
- 高手:C#可以写游戏吗?
- 哪里有xmlspy的教程啊。或者是网站也可以啊。
我的Session超时,也不要导致新用户登录时也出现这个问题的呀。
我的DataSet(存储在线用户信息的列表)是Static的。下面慢些错误信息(应用完全停止服务时)
Server Error in '/bbs' 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: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
System.Data.Index.InitRecords() +281
System.Data.Index..ctor(DataTable table, Int32[] indexDesc, DataViewRowState recordStates, IFilter rowFilter) +60
System.Data.DataTable.GetIndex(Int32[] indexDesc, DataViewRowState recordStates, IFilter rowFilter) +139
System.Data.DataView.UpdateIndex(Boolean force) +108
System.Data.DataView.SetIndex(String newSort, DataViewRowState newRowStates, DataFilter newRowFilter) +83
System.Data.DataView..ctor(DataTable table, String RowFilter, String Sort, DataViewRowState RowState) +461
bbs.Ol.BindData() in c:\inetpub\wwwroot\newaspx\bbs\ol.aspx.cs:72
bbs.Ol.DataGrid1_PageIndexChanged(Object source, DataGridPageChangedEventArgs e) in c:\inetpub\wwwroot\newaspx\bbs\ol.aspx.cs:63
System.Web.UI.WebControls.DataGrid.OnPageIndexChanged(DataGridPageChangedEventArgs e) +110
System.Web.UI.WebControls.DataGrid.OnBubbleEvent(Object source, EventArgs e) +479
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +26
System.Web.UI.WebControls.DataGridItem.OnBubbleEvent(Object source, EventArgs e) +100
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +26
System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +120
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +115
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +138
System.Web.UI.Page.ProcessRequestMain() +1263
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0
我想我现在只做到单线程吧。
WEB上的多线程,还未试过。我可能将这个DataSet存储到数据库里去。
这样可以避免单线程的问题吗?非常感谢。