Validation failed for one or more entities. See 'EntityValidationErrors' property for more details
If you are using Entity Framework and have received this error message and have been frustrated by not being able to see what the actual problem is in Visual Studio then there is a simple solution.
Simply add the following expression to your Watch window:
((System.Data.Entity.Validation.DbEntityValidationException)$exception).EntityValidationErrors
This will give you the information you need to diagnose the problem.
Here's an example of what you will see:

Alternately you can press Ctrl+F9 to bring up the QuickWatch dialog and enter the same expression there.
Rate this post:
Comments
by Ben Hudelson | March 15, 2016
Thanks. Saved me some time.
Reply