How to Enable TLS v1.2 in .NET Framework 4.0
Sometimes you need to use SSL/TLS protocol version 1.2 in your existing .NET 4.0 C# applications. The trick is that by default .NET 4.0 only supports TLS v1.0 and there is no standard way of forcing to use never TLS version. Why may you need a newer TLS version? Because some REST or WebService API providers have switched to using TLS v1.2 as a more secure and up-to-date protocol.
When you get the following error, this may be also because of the outdated TLS version.
The request was aborted: Could not create SSL/TLS secure channel.