Skip to content

SqlConnection.Open throws an InvalidOperationException #2072

@wuxubiao

Description

@wuxubiao

SqlConnection throw an Exceoption by calling open Method

When I add this configuration to the project.csproj,whether the value is true or false

<ItemGroup>
    <RuntimeHostConfigurationOption Include="System.Globalization.Invariant" Value="true" />
</ItemGroup>
SqlConnection throws an Exceoption by calling open Method
            var connection = new SqlConnection();
            connection.ConnectionString = "SomeConnectionString ";
            connection.Open();

InvalidOperationException: Internal connection fatal error.

System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, uint waitForMultipleObjectsTimeout, bool allowCreate, bool onlyOneCheckConnection, DbConnectionOptions userOptions, out DbConnectionInternal connection)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions