I am unable to call a webservice from an ASP.NET page using SSL. If I
call the wsdl file from Internet Explorer 6 I can make a secure connection
to the webservice and invoke the methods without any problem.
However, If I add the web reference to an ASP.NET project (making sure to
specify https when I add the reference) I get the following error when I
call the webservcice:
The underlying connection was closed: Could not establish trust
relationship with remote server.
So what is IE 6 doing that allows it to connect to the webservice that
ASP.NET doesn't do. Is there some function I need to call or property I
need to set?
I found an example that used WebRequest and tried that. I still got the
same error. The documentation stated that WebRequest will automatically
use SSL when used with https.
I also looked on GOOGLE, it looks like other people are also having this
problem. I tried some of the suggestions that I found there but they did
not resolve the problem.
Any suggestions, samples or white papers on this subject would be greatly
appreciated.