No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'

entity-framework

Question

After downloading the EF6 by nuget and try to run my project, it returns the following error:

No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'. Make sure the provider is registered in the 'entityFramework' section of the application config file. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information.

enter image description here

1
539
6/10/2014 9:20:25 AM

Accepted Answer

I just got into the same problem and it looks like EntityFramework although installed from NuGet Package Manager was not correctly installed in the project.

I managed to fix it by running the following command on Package Manager Console:

PM> Install-Package EntityFramework
604
10/7/2014 11:47:25 AM

Popular Answer

You've added EF to a class library project. You also need to add it to the project that references it (your console app, website or whatever).



Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow