Discuz!NT官方社区

首页 » Discuz!NT交流与讨论 » BUG 反馈 » 编辑贴子时出现“操作必须使用一个可更新的查询”,再看贴子编辑其实成功了
lastman - 2008-6-6 21:31:00
Server Error in '/' Application.
--------------------------------------------------------------------------------

操作必须使用一个可更新的查询。
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.Data.OleDb.OleDbException: 操作必须使用一个可更新的查询。

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

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

or:

2) Add the following section to the configuration file of your application:

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

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario. 

Stack Trace:


[OleDbException (0x80004005): 操作必须使用一个可更新的查询。]
  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.ExecuteNonQuery() +108
  Discuz.Data.DbHelper.ExecuteNonQuery(DbConnection connection, CommandType commandType, String commandText, DbParameter[] commandParameters) +108
  Discuz.Data.DbHelper.ExecuteNonQuery(CommandType commandType, String commandText, DbParameter[] commandParameters) +215
  Discuz.Data.Access.DataProvider.UpdateAction(Int32 olid, Int32 action, Int32 fid, String forumname, Int32 tid, String topictitle) +339
  Discuz.Forum.OnlineUsers.UpdateAction(Int32 olid, Int32 action, Int32 fid, String forumname, Int32 tid, String topictitle, Int32 timeout) +274
  Discuz.ForumPage.showtopic.ShowPage() +6125
  Discuz.Web.UI.Pages.BasePage..ctor() +4066
  Discuz.ForumPage.showtopic..ctor() +184
  ASP.aspx_1_showtopic_aspx..ctor() +10
  __ASP.FastObjectFactory_app_web_showtopic_aspx_e804085e_m1xpyv34.Create_ASP_aspx_1_showtopic_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




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
lkj789 - 2008-6-8 8:49:00
谢谢楼主噢!









恶魔法则最新章节
1
查看完整版本: 编辑贴子时出现“操作必须使用一个可更新的查询”,再看贴子编辑其实成功了