Consuming Web API in C#.Net Console Application (.Net 4.6), getting error as "The Request was aborted. Could not create SSL/TLS Secure Channel" in HTTPWebResponse. How to resolve it and access the JSON data from Web API.
Consuming Web API in C#.Net Console Application (.Net 4.6), getting error as "The Request was aborted. Could not create SSL/TLS Secure Channel" in HTTPWebResponse. How to resolve it and access the JSON data from Web API.
You did not share your code or explain how your application works.
The solution is using a valid certificate.
If you are using a self-sighed certificate then you'll can to ignore the certificate validation error. This is a pretty old scenario and there are tons of valid solutions that a quick Google will reveal. Here's one
If this is a valid certificate then you might be missing cert auth. See the certificate authority for the certificate you are using for installation instructions.
Member
6 Points
87 Posts
Error in Consuming Web API in .Net Console Application
Mar 12, 2020 06:29 AM|Ravindranath M|LINK
Consuming Web API in C#.Net Console Application (.Net 4.6), getting error as "The Request was aborted. Could not create SSL/TLS Secure Channel" in HTTPWebResponse. How to resolve it and access the JSON data from Web API.
All-Star
53001 Points
23594 Posts
Re: Error in Consuming Web API in .Net Console Application
Mar 12, 2020 02:14 PM|mgebhard|LINK
You did not share your code or explain how your application works.
The solution is using a valid certificate.
If you are using a self-sighed certificate then you'll can to ignore the certificate validation error. This is a pretty old scenario and there are tons of valid solutions that a quick Google will reveal. Here's one
https://stackoverflow.com/questions/10822509/the-request-was-aborted-could-not-create-ssl-tls-secure-channel
Self-Sighed developer cert
https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/how-to-create-temporary-certificates-for-use-during-development
If this is a valid certificate then you might be missing cert auth. See the certificate authority for the certificate you are using for installation instructions.