Last post Mar 28, 2017 08:58 AM by Cathy Zou
Mar 27, 2017 06:56 PM|HimaniDev|LINK
I am facing an issue with my project, when i try to update my model , i am getting an unusual error which is saying
An exception of type 'System.Argument.Exception' occurred while attempting to update from database.The exception message is: 'An entry with the same key already exists'.
I have tried many solutions provided on internet but unable to resolve that. Please help me in the same.
Mar 27, 2017 07:10 PM|Sumit.Pokhriyal|LINK
Did you try removing that table giving error from .edmx and adding it again.
Mar 28, 2017 08:58 AM|Cathy Zou|LINK
For your problem, The cleanest way is to delete your edmx file and reconfigure the connection string again.
in case you don't want to do that, as Sumit.Pokhriyal suggested. you could delete all tables & functions in your edmx, save it and see if the same error still occur. If the same error don't occur anymore, re-add everything and save it.