I am getting the following error during a web service request to a remote web service:
Could not establish trust relationship for the SSL/TLS secure c
Old, but still helps...
Another great way of achieving the same behavior is through configuration file (web.config)
NOTE: tested on .net full.