Verification on one or more entities fails. For more information, see the "EntityValidationErrors" attribute ., For error details, see

Source: Internet
Author: User

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!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.