Verification on one or more entities fails. For more information, see the "EntityValidationErrors" attribute ., For error details, see
The cause may be:
1. Non-empty column uninserted value error
2. The length of foreign key columns is different between multiple tables.
3. ef context object db is empty
4. The ef context setting attribute is db. Configuration. ValidateOnSaveEnabled = false;
5. The content length exceeds the maximum length of the column.
6. The class library was added but not updated in the solution.
7. Add reference using System. Data. Validation;
My error causes:
An error is reported after the project is published to the site. I reference the EF framework later in the solution and did not upload it. I added a new class library but changed the attribute of the field in the database, but not updated in time in the solution
Upload EF, update the class library, and solve the problem!