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

后端 未结 10 2047
旧巷少年郎
旧巷少年郎 2020-12-09 14:37

We are using EntityFramework 6 with Code First. We have a console app that has no reference to EntityFramework but reads the connection string from its App.config. It call

10条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-09 15:38

    For me it turned out that my provider reference in the web.config file was incorrect. I believe that the nuget package might not properly include the provider.

    I replaced my provider with this and it worked:

      
          
          
              
          
      
    

提交回复
热议问题