I use the code to get the xml return from a web service.
It throws exception:
System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentica
xception: The remote certificate is invalid according to the validation procedure.
How can I code it in VC# to automatically accept the cert?
I use ASP.NET and C#.
WebRequest request = WebRequest.Create(url);
WebResponse response = request.GetResponse();