I have a VB.NET webforms app that is currently using .NET 4.6 (though it has been repeatedly upgraded since the days of 1.1). I recently ran into a problem where the default value of ServicePointManager.SecurityProtocol
was SSL3 or TLS
(I needed TLS 1.2).
It took me a while to find because I assumed the default was based on the .NET version alone (e.g. this MSDN remark). When I created a test console app (C#, in VS 2015) the default was TLS or TLS 1.1 or TLS 1.2
.
The target frameworks were the same but the defaults were different (I did search the code base and we are not setting it, so it must be pulling the default). Here states the default for 4 & 4.5, but where in the registry, config file, anything could I update the configuration for the default protocols (WITHOUT having to hard code it in my application)?