Question

I want to add a service reference to my visual studio project. When doing this I get the following error:

There was an error downloading 'xxxxxxxx/yyyyyy?wsdl'. The request was aborted: Could not create SSL/TLS secure channel. Metadata contains a reference that cannot be resolved: 'xxxxxxxx/yyyyyy?wsdl'. Could not establish secure channel for SSL/TLS with authority 'xxxxxxxx'. The request was aborted: Could not create SSL/TLS secure channel. If the service is defined in the current solution, try building the solution and adding the service reference again.

The remote service(not mine)requires a client certificate, which I own and have installed on my local machine under the LOCAL_COMPUTER and CURRENT_USER the certificate was installed correctly, I can access the service in browser.

Is there a way of telling Visual Studio to take a client certificate somehow? Or maybe to I need to contact the other end to change some config stuff on their side?

thanks

Was it helpful?

Solution 2

The problem was that the wsdl file included another wsdl file. Visual Studio couldn't handle that. I tried getting the include reference in a browser and saved it locally. Then I changed the reference in the first wsdl to the local wsdl that I downloaded in browser.

So, best thing to do is:

  • save wsdl locally

  • check includes in the wsdl, save these locally also, and reference the local versions.

OTHER TIPS

You could request the WSDL manually and then create the proxy using svcutil. This should end up with the same result.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top