This repository has been archived by the owner on Feb 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
The underlying connection was closed: An unexpected error occurred on a send. #41
Comments
Hi @kellyrford : this is not the right fix. See https://docs.microsoft.com/en-us/dotnet/framework/network-programming/tls |
@kellyrford : did you change the version of the .NET framework in the project? |
@kellyrford I believe you are having this problem when you deploy to Azure right? |
@kellyrford should I close this issue? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Followed the example to the letter and the above error message was returned for all calls to httpClient.PostAsync.
Finally resolved the problem. Need to add this line above the call:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
The text was updated successfully, but these errors were encountered: