-
Notifications
You must be signed in to change notification settings - Fork 305
Keyword not supported: 'application name' #3302
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
@jjhoweyeprod Maybe you can provide a runnable simple repro (.csproj and Program.cs) |
@ErikEJ I can try, I was hoping it was something simple or a known issue as I have other apps that it works fine on. |
@jjhoweyeprod yep, we will definitely need a repro scenario for this one. The keyword you're using should be available, especially on the versions you listed. One thing to double check, ASP.NET has some unexpected behaviors sometimes with package versions it pulls in. You might want to double check that in the scenario you experience this error, that you are in fact using Microsoft.Data.SqlClient v6.0.1 to make the connection. I've encountered issues where some specific parts of ASP.NET (eg, session managment) will implicitly use older versions of MDS without it being obvious. |
I cannot reproduce myself in my repro project, so we can probably close unfortunately. I suspect it's due to the way the Connection String env. is being injected into the container from our Helm Chart, something else is blowing up and its blaming the final index. @benrr101 Not sure how this is another opportunity for a different one to come in. |
Does your password include a semi-colon or other reserved character? What happens if you specify Application Name earlier in the connection string? |
Password: No semicolon, only an exclamation mark. I believe we had tried adding The fact I removed the space and it went from 'application name' to 'applicationname' suggests it was partially parsing it. The lowercase it still confusing me. Anyways, I am going to chalk it up to something with injection of ENV. |
Uh oh!
There was an error while loading. Please reload this page.
At wits end, not sure what else it could be. . thanks!
I have a different app with similar ConnString and it has no issue.
Happening using SqlClient 5.5.2 and 6.0.1, inside the aspnet:9.0 runtime image.
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.0.1" />
Cannot reproduce locally on Windows 11.
Also not sure why its converting to lowercase.
Server=PODSDev-db;Database=PODS;Trusted_Connection=False;uid=E_READ;password=xxx;Application Name=My Service Test
Keyword not supported: 'application name'
When I make it one word:
Server=PODSDev-db;Database=PODS;Trusted_Connection=False;uid=e_READ;password=xxx;ApplicationName=My Service Test
Keyword not supported: 'applicationname'
The text was updated successfully, but these errors were encountered: