Create 611802 - SQLConnection.ConnectionString throws NullReferenceException

Documenting known issue for .Net Framework System.Data NRE.
pull/874/head
Saurabh Singh 2018-05-09 15:40:29 -07:00 committed by GitHub
parent e9f52c3485
commit 700f4ca56e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
# NullReferenceException while setting `SqlConnection.ConnectionString` to an empty string or null.
## Symptoms
When an application tries to set the `ConnectionString` property of the `SqlConnection` object a `NullReferenceException` is thrown
## Cause
.NET Framework 4.7.2 includes changes for increasing the default retry count to Azure SQL DB to 2.
The code change sets the internal value of retry count without validating if the ConnectionString is a non-null or non-empty value
which results in the NullReferenceException
## Impact
The applications using SqlConnection.ConnectionString API to set an empty connection string will receive an exception.
## Workarounds
No Known workarounds yet with .Net 4.7.2.
## Resolution
Product team working on code fix.