Last updated 5 years ago
This error can happen if you use a webClient to access an SSL/TLS secured endpoint.
Simply add this code to your method to remove the issue :
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12