Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save haroldcris/f96bb4827edfc358a8a2a666eff94f0f to your computer and use it in GitHub Desktop.

Select an option

Save haroldcris/f96bb4827edfc358a8a2a666eff94f0f to your computer and use it in GitHub Desktop.
Solution for ClosedConnection
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment