No Entity Framework provider with the fixed name "System. Data. SqlClient" was found for issues encountered when using Entity Framework. Make sure that the provider is registered in the "entityFramework" section of the application configuration file.

Source: Internet
Author: User

No Entity Framework provider with the fixed name "System. Data. SqlClient" was found for issues encountered when using Entity Framework. Make sure that the provider is registered in the "entityFramework" section of the application configuration file. The provider is not found in ado.

Problem description:

The following error is reported when you use Entity Framework to retrieve data:

The Entity Framework provider with the fixed name "System. Data. SqlClient" is not found. Make sure that the provider is registered in the "entityFramework" section of the application configuration file. For more information, see http://go.microsoft.com/fwlink? LinkId = 260882.

Here, the logic code of Entity Framework is encapsulated in a class library project, and the other is a console application. In the console, the application references the class library project and reads data from the console project, the problem is that although the class library project references the Entity Framework, the console project does not reference the Entity Framework, thus the EntityFramework is missing. sqlServer. dll

The solution is to copy EntityFramework. SqlServer. dll to the compilation output directory of the console project, or the console project also references Entity Framework (after compilation, EntityFramework. SqlServer. dll will be available)

 

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.