-
Notifications
You must be signed in to change notification settings - Fork 307
.net framework using entityframeworkcore sni.dll missing #373
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
Comments
If this is WPF Application, that's a known issue, see my comment here: #137 (comment) |
I am experiencing the same thing, but only on the test server. Locally everything works fine. In my case there is a .NET Framework 4.7.2 project referencing a .netstandard2.0 project handing Entity Framework and data access. Have not previously referenced any SqlClients directly. I have tried installing |
@cheenamalhotra, my application is actually web forms but the code using ef core is in a separate repository dll. I will also look into the comments you referenced. |
Could you try the repro from link below and confirm if it works in your test environment? |
@cheenamalhotra You can find my sample project with DesktopBridge sample here: https://github.com/michaelmairegger/SqlClientTransitive This is the build folder of the Consumer Project This is the build folder of the DesktopBridge Project. Even though that in Consumer build output the x86 and x64 folder with the sni.dll is there, the folder with the content is missing in the DesktopBridge project. |
For now the following Workaround works:
|
@cheenamalhotra |
@cheenamalhotra, I was able to run the repro successfully. The best that I can come up with is that my class library is using microsoft.entityframeworkcore.sqlserver which uses Microsoft.Data.SqlClient version 1.0.19269.1 rather than 1.1.0. |
@cheenamalhotra, I am also converting my class libraries to .net standard 2.0 rather than framework 4.7.2 to see if that helps. |
I agree on the issue with WPF .NET framework application transitive ref, I'm looking into it currently. Please continue with the workaround for now in that case or you can also switch to WPF .NET Core application which works fine. @organiccomputer |
@cheenamalhotra, I'll begin working on that once I have finished testing a potential fix. Thank you. |
@cheenamalhotra, I was able to resolve the issue by converting my class libraries to .net standard rather than framework 4.7.2. I'm going to close the ticket since my issue was resolved. However, I'm still not sure why it would pull in the sni.dll for .net standard and not for .net framework using the same version of microsoft.entityframeworkcore.sqlserver (3.1.0). |
I'm working with a .net framework 4.7.2 application and I am using entityframeworkcore. When I try to access my database I receive the following stacktrace:
The text was updated successfully, but these errors were encountered: