Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load Microsoft.Data.SqlClient.SNI.X64.dll with error access is denied #3106

Open
uch-fhlb opened this issue Jan 10, 2025 · 1 comment
Labels
✔️ Triage Done Issues that are triaged by dev team and are in investigation. ⏳ Waiting for Customer Issues/PRs waiting for user response/action. ℹ️ Needs more Info Issues that have insufficient information to pursue investigations

Comments

@uch-fhlb
Copy link

Project Type: MVC
.Net Framework version 4.8
Server 2019

We are having an inconsistent problem on some of our servers. We can't explain why the the access request is read in some instances and execute in others. This is causing access to the dll to be denied. Using ProcessMon we were able to see that Execute/Traverse permission is being requested on one server while Generic Read is being requested on the other. We have been unable to determine why this is happening.

In the SqlClient troubleshooting guide, it says execute permissions are needed when using .net core. It doesn't appear that that permission is necessary for .net framework. Do we need to grant execute permissions? Or is there another workaround that we could implement?

@uch-fhlb uch-fhlb added the 🆕 Triage Needed For new issues, not triaged yet. label Jan 10, 2025
@mdaigle
Copy link
Contributor

mdaigle commented Jan 14, 2025

Hi @uch-fhlb, we don't have any specific guidance from the driver perspective. The security context management is handled by .NET for loading dlls. The driver is just trying to load the dll from wherever you deployed your application. For example, one common issue we've seen is loading from a network location.

If you have any additional details about the error that point to an issue with MDS, please post them here. Thanks!

@mdaigle mdaigle added ✔️ Triage Done Issues that are triaged by dev team and are in investigation. and removed 🆕 Triage Needed For new issues, not triaged yet. labels Jan 14, 2025
@cheenamalhotra cheenamalhotra added ℹ️ Needs more Info Issues that have insufficient information to pursue investigations ⏳ Waiting for Customer Issues/PRs waiting for user response/action. labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✔️ Triage Done Issues that are triaged by dev team and are in investigation. ⏳ Waiting for Customer Issues/PRs waiting for user response/action. ℹ️ Needs more Info Issues that have insufficient information to pursue investigations
Projects
None yet
Development

No branches or pull requests

3 participants