Introduction
I was working on MVC application using Entity Framework, MVC, Jquery. I hit the Save button to save corresponding values into database, but this time did not go fine as usual, I got the given error An exception of type 'System.Data.Entity.Infrastructure.DbUpdateException' occurred in EntityFramework.dll but was not handled in user code.Error Description
An exception of type 'System.Data.Entity.Infrastructure.DbUpdateException' occurred in EntityFramework.dll but was not handled in user codeSolution
When I started working to resolve issue, debugging deeply and came across of stack trace message then I found that this issue was due to database table identity off.I just set table Identity on and again tried to save relevant values into database, this time it worked fine for me.