Discuz!NT官方社区

首页 » Discuz!NT交流与讨论 » BUG 反馈 » 表 'dnt_online' 己经被别的用户以独占方式打开
455443 - 2008-5-30 9:54:00
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------

表 'dnt_online' 己经被别的用户以独占方式打开, 或它已经被其它用户从用户界面打开,且不能被程序处理。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Data.OleDb.OleDbException: 表 'dnt_online' 己经被别的用户以独占方式打开, 或它已经被其它用户从用户界面打开,且不能被程序处理。

源错误:

只有在调试模式下进行编译时,生成此未处理异常的源代码才会显示出来。若要启用此功能,请执行以下步骤之一,然后请求 URL:

1. 在产生错误的文件的顶部添加一条“Debug=true”指令。例如:

  <%@ Page Language="C#" Debug="true" %>

或:

2. 将以下的节添加到应用程序的配置文件中:

<configuration>
  <system.web>
      <compilation debug="true"/>
  </system.web>
</configuration>

请注意,第二个步骤将使给定应用程序中的所有文件在调试模式下进行编译;第一个步骤仅使该特定文件在调试模式下进行编译。

重要事项: 以调试模式运行应用程序一定会产生内存/性能系统开销。在部署到生产方案之前,应确保应用程序调试已禁用。 

堆栈跟踪:


[OleDbException (0x80004005): 表 'dnt_online' 己经被别的用户以独占方式打开, 或它已经被其它用户从用户界面打开,且不能被程序处理。]
  System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +267
  System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +192
  System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +48
  System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +106
  System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +111
  System.Data.OleDb.OleDbCommand.ExecuteDbDataReader(CommandBehavior behavior) +4
  System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior) +7
  Discuz.Data.DbHelper.ExecuteReader(DbConnection connection, DbTransaction transaction, CommandType commandType, String commandText, DbParameter[] commandParameters, DbConnectionOwnership connectionOwnership) +385
  Discuz.Data.DbHelper.ExecuteReader(CommandType commandType, String commandText, DbParameter[] commandParameters) +238
  Discuz.Data.DbHelper.ExecuteReader(CommandType commandType, String commandText) +7
  Discuz.Data.Access.DataProvider.GetOnlineUserList() +38
  Discuz.Forum.OnlineUsers.GetOnlineUserCollection(Int32& totaluser, Int32& guest, Int32& user, Int32& invisibleuser) +75
  Discuz.ForumPage.forumindex.ShowPage() +1808
  Discuz.Web.UI.Pages.BasePage..ctor() +4065
  Discuz.ForumPage.forumindex..ctor() +55
  ASP.bbs_aspx_6_forumindex_aspx..ctor() +10
  __ASP.FastObjectFactory_app_web_apjcqm4s.Create_ASP_bbs_aspx_6_forumindex_aspx() +20
  System.Web.Compilation.BuildResultCompiledType.CreateInstance() +49
  System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +115
  System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
  System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
  System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
  System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +128
  System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +161




--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.1433; ASP.NET 版本:2.0.50727.1433
戏水 - 2008-6-5 10:16:00
重启iis试试看。
lkj789 - 2008-6-8 8:51:00
谢谢楼主啊!








混在三国当军阀
455443 - 2008-7-7 13:32:00
搞一下,好多啦 .哈哈
1
查看完整版本: 表 'dnt_online' 己经被别的用户以独占方式打开