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

I am getting the error when trying to create the contact in infusionsoft from the C# code. I have installed the latest Nuget package to use infusionsoft functionality.

I am getting the exception when this line is executed
contactID = client.ContactService.Add().

Exception message is
“The request was aborted: Could not create SSL/TLS secure channel.”

Any idea how we can fix this error and create the contact to the infusionsoft from the code?

Any help here is appreciated. Thanks.

Hello Ankit, have you manage to solve this problem? I am getting the same error when trying to use the DataService.Query method. I found this issue reported at the GitHub project from long time ago and this problem was supposedly solved: The request was aborted: Could not create SSL/TLS secure channel. · Issue #12 · EventDay/Infusionsoft.net · GitHub

Hello again Ankit! I solved it! Just add the following line after the Connect() instruction and voilá!

System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;

1 Like

Hi Johann,

Thanks for the response. Yes, I have managed the things using the infusionsoft API instead of DLL. Here is the reference link. I believe you are interested to see that.

Thanks