Skip to content

Commit 700f4ca

Browse files
authored
Create 611802 - SQLConnection.ConnectionString throws NullReferenceException
Documenting known issue for .Net Framework System.Data NRE.
1 parent e9f52c3 commit 700f4ca

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# NullReferenceException while setting `SqlConnection.ConnectionString` to an empty string or null.
2+
## Symptoms
3+
4+
When an application tries to set the `ConnectionString` property of the `SqlConnection` object a `NullReferenceException` is thrown
5+
6+
## Cause
7+
8+
.NET Framework 4.7.2 includes changes for increasing the default retry count to Azure SQL DB to 2.
9+
The code change sets the internal value of retry count without validating if the ConnectionString is a non-null or non-empty value
10+
which results in the NullReferenceException
11+
12+
## Impact
13+
14+
The applications using SqlConnection.ConnectionString API to set an empty connection string will receive an exception.
15+
16+
## Workarounds
17+
18+
No Known workarounds yet with .Net 4.7.2.
19+
20+
## Resolution
21+
22+
Product team working on code fix.

0 commit comments

Comments
 (0)