Could not load file or assembly System.Data.SqlClient, Version=4.2.0.2 when I use System.Data.SqlClient Version 4.4.3

后端 未结 6 2058
夕颜
夕颜 2021-01-07 17:10

I use System.Data.SqlClient Version 4.4.3 for all .NET Standard 2.0 class libraries in my ASP.NET Core 2.0 project. Why do I get

Cou

6条回答
  •  感情败类
    2021-01-07 18:12

    This happens when some dependent assembly uses old version of same library. To solve that you can use assembly redirecting, to force old library use newer version.

    put this in your app.config or in web.config in case of asp.net

      
          
          
      
    

提交回复
热议问题