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.