dotnet / dotnet/SqlClient

Unable to load 5.1.1 DLL 'Microsoft.Data.SqlClient.SNI.x64.dll' : The specified module could not be found.

Open
#2,049 14 comments 0 reactions 0 assignees View on GitHub
Area\Native SNI
Dominant language
C#
Stars
989
Forks
340
Avg merge
4d 18h
Merged PRs (30d)
69

Description

Hi,
Myself Kumar Kashyap Pandey working in .NET core (4.7.2) application and to implement Azure Active Directory authentication adding MicroSoft.Data.SqlClient for it and as per dependency MicroSoft.Data.SqlClient.SNI is also getting added but its dll is not getting loaded throwing error like Unable to load DLL 'Microsoft.Data.SqlClient.SNI.x64.dll': The specified module could not be found.

Exception
Unable  to load SNI

Microft SQL Client 5.1.1 refereced in Project
Microft SQL Client 5 1 1 refereced in Project

SNI file not accessible error although it has read and execute access for all users.
SNI file not accessible error - Copy

Project bin folder with sql client dlls
Project bin folder with sql client dlls

In Packages folder
In Packages folder

Microsft data client dlls in Package config
Microsft data client dlls in Package config

Kindly help me ASAP for resolving this issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.