Company
Date Published
Author
Bruno Garcia
Word count
1092
Language
English
Hacker News points
None

Summary

The April 2018 Update (1803) of Windows 10 includes an upgrade to .NET Framework, bringing it up to version 4.7.2, which may cause issues with applications compiled for earlier versions of the framework. The issue arises when a `SqlConnection` object is instantiated while providing a connection string and the `ConnectionString` setter is subsequently called, causing a `NullReferenceException`. To work around this issue, developers can use a new instance of `SqlConnection` instead of reusing an existing one. Additionally, using .NET Core can provide protection against automatic framework updates and issues like this one, as it allows for side-by-side installations with no impact on older versions. Sentry, a dedicated exception monitoring tool, can help track and display detailed information about errors, including runtime and operating system versions, making it easier to diagnose and fix issues.