0
I have an API (.NET Framework 4.8) that communicates with another layer (.NET Framework 4.0) where I have developed a method that persists an information in the database, and at the end triggers ANOTHER API (third party) to send an email. When I run the application on Windows 10 it works normally, but when trying to run on Windows 7 (in the IDE) and on Windows 2012 (published) the answer returns me status code 0 with the following error "The request was aborted: Could not create SSL/TLS Secure Channel."
Encoding I’m using to make the call at the end-point:
Dim request As New RestRequest(endpoint, type)
request.RequestFormat = DataFormat.Json
request.AddHeader("Content-Type", "application/json")
request.AddHeader("sourceToken", _sourceToken)
If Not IsNothing(body) Then request.AddJsonBody(body)
ServicePointManager.SecurityProtocol = Tls12