I have a web service which calls make a soap request. While debugging in VS.NET 2008 the soap request is successful. However when I deploy it, I get the following error
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
This must be some sort of security setting I need to change, but I don't know what?
I have tried to deploy the code with:
System.Security.Cryptography.X509Certificates.X509Certificate cert = null;
cert = new System.Security.Cryptography.X509Certificates.X509Certificate();
//WebProxy iBproxy = new WebProxy("188.8.131.52",true);
WebProxy iBproxy = new WebProxy("184.108.40.206", true);
iBproxy.Credentials = new NetworkCredential("username", "password");
objRequest.Proxy = iBproxy;
Thanks in advance!