I have Windows 2012 server and I have gone into the regersity and have disabled TLS 1.0 and TLS 1.1.
When I run the C# sample that charges credit card. I get the following error on the lines
try
{
controller.Execute();
}
catch (Exception mm)
{
Console.WriteLine("Error: " + mm.Message);
}
I get an exception error: the underlying connection was closed: An unexpected error occurred on a send.
Does anyone have any ideas why I am getting this error?
06-12-2017 09:22 AM
Try :
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
in your function that posts the XML.
06-12-2017 01:45 PM - edited 06-12-2017 01:57 PM