- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
System.Net.WebException The underlying connection was closed: An unexpected error occurred on a send
I use C# examples and use the source code for CreateCustomerProfile: http://developer.authorize.net/api/reference/#customer-profiles
I use only code from this example and I have the exception "System.Net.WebException" in string
controller.Execute();
Can anyone help me?
โ07-17-2017 07:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What version of the .Net framework are you using? If you are using .Net framework 4.5, try adding the following at the beginning of the function where you make a webrequest:
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
Certified Authorize.net developers

โ07-17-2017 07:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much!))) Your additional code has helped me. I use .NET framework 4.5.2
โ07-17-2017 07:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Certified Authorize.net developers

โ07-18-2017 02:00 AM

