Azure DevOps have disabled communications over TLS 1.0 and 1.1. Is your Deployment Group offline? Here's one quick fix for this.
Reading Windows registry keys using C# should be straight forward. Or is it?
Data in transit from SQL Server to client is not encrypted by default. Let's see how we can fix this.