The request was aborted: Could not create SSL/TLS secure channel

Sajith Gopalakrishnan Hema 1,041 Reputation points
2020-11-24T13:02:23.38+00:00

.Net Class Library is based on 4.5 and using HtmlAgilityPack, I was calling an https URL and it was working fine.

After the website is updated and will not support old browsers which are not TLS v1.2 compliant. Getting the error -

The request was aborted: Could not create SSL/TLS secure channel

Tried below article, still it is not working

https://kevinchalet.com/2019/04/11/forcing-an-old-net-application-to-support-tls-1-2-without-recompiling-it/

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,183 questions
{count} votes

6 answers

Sort by: Most helpful
  1. Raymond Ford 0 Reputation points
    2023-10-10T13:53:05.0133333+00:00

    In my situation, removing "request.Credentials = CredentialCache.DefaultCredentials" fixed the problem.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.