Wednesday, February 5, 2014
0 comments

Could not establish trust relationship for SSL/TLS secure channel — SOAP

10:28 AM
For this type of error validate ur SSL Server by follwing code :

using System.Security.Cryptography.X509Certificates;
using System.Net.Security;
... then before you do request getting the error, do the following
System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; };

0 comments:

 
Toggle Footer