If you ever thought you can consume a webservice running on a server that only runs HTTPS using .NET...give it up:
Is not possible, the proxy files created by the VS, spread all over the XML config files HTTP URIes, althought you added the reference using HTTPS prefix.
Programatically adding the server's certificate to the client, also fails.
Resulting all cases to "80 port calling to the server", instead of the expected 433 (ssl)
X509Certificate2 certConfiableServidor = new X509Certificate2(@"C:\WebSite1\certs\ServerERES_pre.cer");
Client.ClientCredentials.ServiceCertificate.DefaultCertificate=certConfiableServidor;
Client is a proxy class created by the UI using Add webservice reference. Calling method to the server It always ends up with exception message telling about "Timeout, port 80 unreachable."
If I can only make the proxy properly call the server methods using port 443 instead of unsecure 80...