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.
//C# sample Created on 7/7/08 by: Justin Morris
//This C# sample will create a contact record in Infusionsoft
//and based on check boxes add it to groups and/or campaigns.
//For this example you will need a windows forms project
//with 4 text boxes (fName, lName, eMail and Results - Results I have set as multiline.
//You will also need 4 check boxes: news1, news2, camp1 and camp2.
//And finally 1 button named addCon.
//start off by adding CookComputing.XmlRpcV2.dll as a project reference - you can download the file from
//www.xml-rpc.net.
//now lets import the cook computing xmlrpc library.
using CookComputing.XmlRpc;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
This file has been truncated. show original
Thanks