System.DllNotFoundException: 'The DLL 'Microsoft.Data.SqlClient.SNI.x86.dll' could not be loaded: The specified module could not be found. (Exception from HRESULT: 0x8007007E)' #3260
Labels
Needs More Info ℹ️
Issues that have insufficient information to pursue investigations
Waiting for Customer ⏳
Issues/PRs waiting for user response/action.
Milestone
Describe the bug
If I create a .Net Framework 4.8 vb.net Winform app and add Microsoft.Data.SqlClient, every thing works fine. If I create a .Net Framework 4.8 vb.net Web (MVC) application and add Microsoft.Data.SqlClient, then I get the error.
Screeencast:
https://app.screencast.com/Awqe1liwal6hi?conversation=jS1SXY0TcTEHZQMhG0tMH1
To reproduce
Dim cnn As New SqlConnection("Data Source=MySever;Initial Catalog=MyDb;Persist Security Info=True; Integrated Security=true; application name=abc; Min Pool Size=1; Connection Timeout=30; TrustServerCertificate=True;")
cnn.Open()
Expected behavior
A new SqlConnection is created and opened.
Further technical details
Microsoft.Data.SqlClient version: 6.0.1
Microsoft.Data.SqlClient.Sni version: 6.0.2
.NET target: .NET Framework 4.8, .NET 6.0
SQL Server version: SQL Server 2022
Operating system: Windows 11 Pro x64
Additional context
The text was updated successfully, but these errors were encountered: