Hi All Friends
i have an amazing error in my project
i wrote a project in ASP.NET 2
a part of this project change a value in a row in a table in sql 2005 to another value
i used it in my computer (With Local host and my own iis) and it works properly and without any problem
but when i upload it in internet it have this error:
"Concurrency violation: the UpdateCommand affected 0 of the expected 1 records. "
can anyone help me?
i think the error is from my table in sql 2005 but i dont know what is wrong in it
thanks for your cares friends and im waiting for your usefull answers
It means that someone changed the row between the time you initially retrieved it, and the time you did the update. Or you are pointing at the wrong database for the update.
|||No it cannot happen
because this form has a password that no one have it and no one know about this form
it cant be
but it's a Notice here :When i delete my table and recreate it again it work probably but sometimes it has this error again
|||Well, if you're absolutely sure that there is no way that the row could have been changed--there could be other forms or other apps that are updating the table--then there is something wrong in the concurrency code. Did a wizard generate this for you, or did you write some custom code?
Don
No comments:
Post a Comment