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

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


You need to create a reference, so it will be copied in the debug folder. So later it can accessed in runtime.

Don't to copy any files, just create this reference:

private volatile Type _dependency;public MyClass(){    _dependency = typeof(System.Data.Entity.SqlServer.SqlProviderServices);}


do you have the assembly EntityFramework.SqlServer.dll in your application path?I had the same Problem and after copying the dll into the application path every Thing worked fine.