-
Notifications
You must be signed in to change notification settings - Fork 316
Description
Describe the bug
We recently upgraded from SqlClient 5.1.5 to 5.2.0. We are disabling invariant mode by setting <InvariantGlobalization>false</InvariantGlobalization>
in our Directory.Build.props file. However we are seeing exceptions on startup due to Unhandled exception. System.NotSupportedException: Globalization Invariant Mode is not supported
.
I have verified we are including the tzdata
and icu-libs
in our container image. Interestingly, we do not see the error when running locally.
We are currently running in production with 5.1.5, but after upgrade to 5.2.0, we are seeing startup errors.
Expected behavior
I expect invariant mode to be determined correctly.
Further technical details
Microsoft.Data.SqlClient version: (found on the nuget or Microsoft.Data.SqlClient.dll)
.NET target: .Net 7 and .Net 8
SQL Server version: Azure hosted SQL (not sure the exact version)
Operating system: Linux containers mcr.microsoft.com/dotnet/runtime-deps:8.0.0-alpine3.18-amd64
and mcr.microsoft.com/dotnet/runtime-deps:7.0.16-alpine3.19-amd64
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status