在VS2019中添加或消费新的WCF Web服务参考时,无法创建SSL/TLS安全频道 -
在执行此操作时,我需要在VS2019上的.NET Core 5.0项目中添加WCF服务参考。我会收到以下错误:
尝试通过'https://ws-xxxxxx/xxxrtnerConnection?wsdl'寻找服务时发生了错误。该请求被中止:无法创建SSL/TLS安全频道。
我还尝试了以下解决此问题的方法,但没有运气:
- 在本地机器中安装了SSL证书。
- 然后,我可以在浏览器中访问该服务。
- 我将该服务保存/下载到机器中,之后能够使用
从VS2019中添加服务参考
。 - 尝试访问包含的方法内部服务时,请在以下错误:
无法建立使用权威“ WS-xxxxxx/xxxrtnerConnection”的SSL/TLS安全频道的信任关系。
但是,令人惊讶的是,当我在MVC项目中消费服务时,一切正常,它在web.config文件中添加了sustombinding
xml代码,并且.NET Core Project中没有此类文件。
因此,我应该在.NET Core Project中消费服务。
I need to add WCF service reference in .NET core 5.0 project on VS2019 When doing this I am getting the below error:
An error occurred while attempting to find services at 'https://ws-xxxxxx/xxxrtnerConnection?wsdl'. The request was aborted: Could not create SSL/TLS secure channel.
I have also tried below ways for solving this issue but no luck:
- Installed SSL certificate in in my local machine.
- Then I can access the service in browser.
- I saved/download that service in machine after that able to consume saved service using
Add service reference
from vs2019. - When trying to access contained method inside service then getting below error:
Could not establish trust relationship for the SSL/TLS secure channel with authority 'ws-xxxxxx/xxxrtnerConnection'.
But the amazing thing is that everything is working fine when I am consuming service in MVC project after consuming it adds customBinding
xml code in web.config file and there is no such file in .Net core project.
So what should I do for consuming service in .NET core project.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论