-
Notifications
You must be signed in to change notification settings - Fork 294
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
SqlDependency.Start throws FileNotFoundException in Microsoft.Data.SqlClient 1.1.0 #401
Comments
Hi @Grauenwolf Can you provide a repro to your use-case? I'm not able to reproduce with a simple example I created: Results on testing with v1.1.0 against different targets: |
Interesting. When I run your sample, it works fine. But when I put the code in a MSTest project is fails for net461.
|
Same results when I set the test architecture to x86 or x64. Are there any other settings I should try? |
@cheenamalhotra i have the same issue with the release nuget and the current 2.0 preview: Always, when
|
The proposed fix in PR #410 is still in discussions, you could give that a try and let us know your feedback! I just uploaded NuGet Package with the fix for trial: #410 (comment) |
I don't have access to a computer right now. @BoBiene , can you test? |
Hi @cheenamalhotra, how can i use a nuget file directly in a PackageReference? |
Hi @cheenamalhotra, i did a try by uploading your package to our local nuget feed. But it seem like the PublicKeyToken is not set in your PR assembly. In my project i use a nuget package referencing the official nuget-package. |
We don't use Public Key Tokens for building temporary dev packages, could you skip that check or let me know what error you're receiving? Please note: This is only a dev package to validate PR changes, not recommended for any other usage. |
Describe the bug
When running against .NET Framework 4.6.1, SqlDependency.Start(string) throws a FileNotFoundException.
To reproduce
Include a complete code listing (or project/solution) that we can run to reproduce the issue.
Partial code listings, or multiple fragments of code, will slow down our response or cause us to push the issue back to you to provide code to reproduce the issue.
Further technical details
Additional context
The same code works correctly when targeting .NET Core 2.1.
The same code works correctly when using System.Data.SqlClient against .NET Framework 4.6.1.
Was reportedly fixed in #260, but I'm still seeing the error.
The text was updated successfully, but these errors were encountered: