You need to add the following code and execute once for your application context.
System.Net.ServicePointManager.ServerCertificateValidationCallback = (s, certificate, chain, sslPolicyErrors) => true;
Actaully when use ssl then it use certificate and your web server try to validate that. In the above code you validated all certificates with true value. Please add this code to your Applicatin start event or some other place and redeploy the code and test it.