Why I am getting FileNotFoundException: Could not load file or assembly 'System.Data.SqlClient,?

huangapple go评论57阅读模式
英文:

Why I am getting FileNotFoundException: Could not load file or assembly 'System.Data.SqlClient,?

问题

FileNotFoundException: 无法加载文件或程序集 'System.Data.SqlClient, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'。系统找不到指定的文件。我在文件夹中有这个DLL文件。

英文:

> An unhandled exception occurred while processing the request.
FileNotFoundException: Could not load file or assembly 'System.Data.SqlClient, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.

I have the dll file in the folder

Why I am getting FileNotFoundException: Could not load file or assembly 'System.Data.SqlClient,?

答案1

得分: 1

使用 Microsoft.Data.SqlClient 库而不是 System.Data.SqlClient 应该可以解决这个问题。

英文:

Using the Microsoft.Data.SqlClient library instead of System.Data.SqlClient should resolve the issue.

huangapple
  • 本文由 发表于 2023年6月13日 13:16:03
  • 转载请务必保留本文链接:https://go.coder-hub.com/76461862.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定