October 05, 2012

The underlying connection was closed

Problem:
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.


Solution:
Just add this line in your codes

ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate{return true;});

4 comments:

Anonymous said...

Appreciation pro this article. Present are categorically tips participating in at this juncture to I choice benefit.

Anonymous said...

good post, added you to my RSS reader.

Anonymous said...

Fantastic post, I really look forward to updates from you.

Anonymous said...

Presently what did you say? I considered necessary! Maybe to facilitate bidding transpire my inspiration on behalf of the week, keep it emergence!