-
Notifications
You must be signed in to change notification settings - Fork 299
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
System.Collections.Generic.KeyNotFoundException #1613
Comments
What is your connection string? |
|
That looks like a valid connection string, and I tried a similar connection string and it ran through successfully without an issue. However, the code indicated where the exception was thrown shows that |
@pengweiqhca what version of SqlClient are you using? |
4.1.0 |
I'm also hitting this (or rather a customer of ours is). We are using Microsoft.Data.SqlClient 4.1.0. The connection string is |
@pengweiqhca @mark-raymond could try out the fix in the PR #1614 and see if it resolves your issue. The PR is tagged in the upcoming release, but I don't have the test environment with a server with AG to verify it before it can be merged. |
The pipeline generated the nuget package from the PR which you can download from here: https://sqlclientdrivers.visualstudio.com/904996cc-6198-4d39-8540-eca72bdf0b7b/_apis/build/builds/51479/artifacts?artifactName=Artifacts&api-version=7.0&%24format=zip |
@pengweiqhca and @mark-raymond could you verify it with the provided NuGet, please? |
Ah, the issue was hit by a customer of ours, I don't actually have access to the environment myself to test against. |
https://github.com/dotnet/SqlClient/blob/main/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionPoolGroupProviderInfo.cs#L107
The text was updated successfully, but these errors were encountered: