Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 660
Fernando Vellozo Avatar asked Aug 27 '13 01:08

Fernando Vellozo


2 Answers

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 
like image 138
douglaslps Avatar answered Oct 17 '22 00:10

douglaslps


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).

like image 20
Clément Picou Avatar answered Oct 17 '22 01:10

Clément Picou