Server Error in "/" application. Validation failed for one or more entities. See ' entityvalidationerrors ' property for more details.
Description: An unhandled exception occurred during the execution of the current WEB request. Check the stack trace information For more information about the error and the source of the error in your code.
Exception Details: System.Data.Entity.Validation.DbEntityValidationException:Validation failed for one or more entities. See ' entityvalidationerrors ' property for more details.
Source Error:
--------------------------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------------
This problem occurs:
We cannot find an assignment error in the error message that is the attribute of that entity, causing the exception to be thrown.
At this point we should convert the wrong object so that we can get the information we need to modify the program.
Look at the code specifically:
To convert objects in the monitor:
((System.Data.Entity.Validation.DbEntityValidationException) $exception)
To get the object we need, we can find out exactly where the error is coming from ....
Find the problem, modify the code, it is OK, wow click. A long-depressed problem finally solved.
Validation failed for one or more entities. See ' entityvalidationerrors ' property for more details.