Last post Feb 21, 2011 04:08 AM by shabirhakim1
Feb 21, 2011 03:34 AM|GurjitWadhwa|LINK
i'm working on a SqlDataSource object, it has a deletecommand which is ( DeleteCommand="delete albums where albumid=@albumid") but whenever i try to delete a record, where albumid is an identity primary key column, i receive the following error message ,
An entry with the same key already exists.
but there are no duplicate records, i wonder why i receive this msg, may i pls mention again AlbumId is a Primary Key Column with Identity(1,1)
Feb 21, 2011 04:08 AM|shabirhakim1|LINK
It was noticed, that usually the error happened for the first user openning the site after ASP application pool recycle.It could be caused by multi-threaded access to the same function during ASP.NET precompilation
There are similar posts,you can check here