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 2016
夕颜
夕颜 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:07

    I got the same issue, SerializationException with message:

    Unable to find assembly 'Microsoft.Data.SqlClient,  
    March 3rd 2020 16:36:46Error
    Version=1.0.19269.1, Culture=neutral, PublicKeyToken=23ec7fc2d6eaa4a5'
    

    but everything is ok with dll, issue was caused by invalid connection string, it takes me almost few hours to figure out what happens!

提交回复
热议问题