Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
| Search | Today's Posts | Mark Forums Read
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 28th, 2005, 04:23 PM
Registered User
 
Join Date: Mar 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default the UpdateCommand affected 0 of the expected 1 rec

I'm getting this terrible error. It is driving me crazy. Please help me out.


Concurrency violation: the UpdateCommand affected 0 of the expected 1 records.
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.DBConcurrencyException: Concurrency violation: the UpdateCommand affected 0 of the expected 1 records.

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:


[DBConcurrencyException: Concurrency violation: the UpdateCommand affected 0 of the expected 1 records.]
   System.Data.Common.DbDataAdapter.UpdatedRowStatusE rrors(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount) +277
   System.Data.Common.DbDataAdapter.UpdatedRowStatus( RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount) +48
   System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping) +1802
   System.Data.Common.DbDataAdapter.UpdateFromDataTab le(DataTable dataTable, DataTableMapping tableMapping) +38
   System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable) +166
   com.jivejewelry.Cart.doUpdate(Boolean bCommit) +71
   com.jivejewelry.Cart.doSwitch() +355
   com.jivejewelry.SignIn.imgButLogin_Click(Object sender, ImageClickEventArgs e) +652
   System.Web.UI.WebControls.ImageButton.OnClick(Imag eClickEventArgs e) +111
   System.Web.UI.WebControls.ImageButton.RaisePostBac kEvent(String eventArgument) +244
   System.Web.UI.WebControls.ImageButton.System.Web.U I.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +5
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +31
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5157





Similar Threads
Thread Thread Starter Forum Replies Last Post
VB Adding UpdateCommand Rich57 ASP.NET 2.0 Basics 0 May 30th, 2008 10:33 AM
My database was affected artarasan SQL Server 2000 3 May 27th, 2008 04:44 PM
GridView UpdateCommand Sheraz Khan ASP.NET 2.0 Professional 2 August 28th, 2007 07:24 AM
How to? Copy rec to new tbl then del old rec LearningACCESS Access VBA 13 March 6th, 2007 11:56 AM
UpdateCommand ozzy VB.NET 2002/2003 Basics 4 January 24th, 2005 05:55 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.