[英]“Could not create SSL/TLS secure channel” Error while trying to add Https Service from Visual Studio
I am trying to add Service Https Service Reference to Visual Studio. 我正在尝试将服务Https服务引用添加到Visual Studio。
The https://thelinkiamtrying.com/Service.svc link opens in browser without problem. https://thelinkiamtrying.com/Service.svc链接在浏览器中打开没有问题。 But when I try to add it through Visual studio interface, (Add Service Reference) I get the following error:
但是当我尝试通过Visual Studio界面添加它时,(添加服务引用)我收到以下错误:
"There was an error downloading ' https://thelinkiamtrying.com/Service.svc/databin/ListData.svc/ $metadata'. The request was aborted: Could not create SSL/TLS secure channel. Metadata contains a reference that cannot be resolved: ' https://thelinkiamtrying.com/Service.svc '. Could not establish secure channel for SSL/TLS with authority 'thelinkiamtrying.com'. 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. “下载' https://thelinkiamtrying.com/Service.svc/databin/ListData.svc/ $ metadata'时出错。请求已中止:无法创建SSL / TLS安全通道。元数据包含不能参考的引用已解决:' https ://thelinkiamtrying.com/Service.svc'。无法为权限'thelinkiamtrying.com'建立SSL / TLS的安全通道。请求已中止:无法创建SSL / TLS安全通道。如果服务在当前解决方案中定义,尝试构建解决方案并再次添加服务引用。
What should I do to add this Service? 我该怎么做才能添加这项服务?
If you just show me that how can I call it without using the interface and from codebehind, that would help too. 如果您只是告诉我如何在不使用界面和代码隐藏的情况下调用它,那也会有所帮助。
I had the same problem and resolved this by using another version of Visual Studio. 我有同样的问题,并通过使用另一个版本的Visual Studio解决了这个问题。 VS 2012 did not let me add service reference with the exact same error message, but VS 2015 added it with no errors.
VS 2012没有让我添加完全相同的错误消息的服务引用,但VS 2015添加它没有错误。 Then I was able to save the project and open it again in VS 2012.
然后我能够保存项目并在VS 2012中再次打开它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.