You should work with .NET 4.5 or above version and add this line in your code:
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
You should work with .NET 4.5 or above version and add this line in your code:
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;