Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

getsentry/dotnet-repro-net472-sql-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SqlConnection bug in the .NET Framework 4.7.2

This repository contains a sample app that reproduces the issue introduced in the .NET Framework 4.7.2.

When executed, the ConnectionString property setter will throw a NullReferenceException which is captured by Sentry using the .NET SDK. To run it, you'll need a DSN. If you're new to Sentry, you can get one at sentry.io.

Run it

You can also run this without an IDE like Visual Studio if you have .NET Core installed:

dotnet run -- "https://your-dsn@sentry.io"
> Sentry event Id: a5631eea6dec4b47a0eecaaf37d67c35

Sentry will display such error as:

SqlConnection exception .NET 4.7.2

About

Reproducing .NET 4.7.2 bug in SqlConnection

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages