产品使用及交流论坛

首页 » 产品使用交流区 » 安装及使用交流 » 直接在mdb数据库中导入数据,结果出现这个错误,请高手支招。
lms121 - 2018/2/6 22:30:48
违反并发性: UpdateCommand 影响了预期 1 条记录中的 0 条。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Data.DBConcurrencyException: 违反并发性: UpdateCommand 影响了预期 1 条记录中的 0 条。

源错误:

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  

堆栈跟踪:

[DBConcurrencyException: 违反并发性: UpdateCommand 影响了预期 1 条记录中的 0 条。]
   System.Data.Common.DbDataAdapter.UpdatedRowStatusErrors(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount) +397
   System.Data.Common.DbDataAdapter.UpdatedRowStatus(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount) +41
   System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping) +2158
   System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping) +43
   System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable) +174
   PageAdmin.data_add.ome99uCsXk0UDhgVAFN(Object , Object , Object ) +12
   PageAdmin.data_add.hyJMxdTIS5(String ) +12137
   PageAdmin.data_add.Page_Load(Object src, EventArgs e) +137
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43
   System.Web.UI.Control.OnLoad(EventArgs e) +73
   System.Web.UI.Control.LoadRecursive() +52
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2188
1
查看完整版本: 直接在mdb数据库中导入数据,结果出现这个错误,请高手支招。