Navigation

    Inedo Community Forums

    Forums

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. creigmalta_2650
    C
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    creigmalta_2650

    @creigmalta_2650

    1
    Reputation
    1
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    creigmalta_2650 Follow

    Best posts made by creigmalta_2650

    • RE: The request was aborted: Could not create SSL/TLS secure channel.

      The error is generic and there are many reasons why the SSL/TLS negotiation may fail. ServicePointManager.SecurityProtocol property selects the version of the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocol to use for new connections; existing c# connections aren't changed. Make sure the ServicePointManager settings are made before the HttpWebRequest is created, else it will not work. Also, you have to enable other security protocol versions to resolve this issue:

      ServicePointManager.Expect100Continue = true;
      ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
      SecurityProtocolType.Tls
      SecurityProtocolType.Tls11
      SecurityProtocolType.Ssl3;

      //createing HttpWebRequest after ServicePointManager settings
      HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://google.com/api/")

      If you create HttpWebRequest before the ServicePointManager settings it will fail and shows the error message.

      posted in Support
      C
      creigmalta_2650

    Latest posts made by creigmalta_2650

    • RE: The request was aborted: Could not create SSL/TLS secure channel.

      The error is generic and there are many reasons why the SSL/TLS negotiation may fail. ServicePointManager.SecurityProtocol property selects the version of the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocol to use for new connections; existing c# connections aren't changed. Make sure the ServicePointManager settings are made before the HttpWebRequest is created, else it will not work. Also, you have to enable other security protocol versions to resolve this issue:

      ServicePointManager.Expect100Continue = true;
      ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
      SecurityProtocolType.Tls
      SecurityProtocolType.Tls11
      SecurityProtocolType.Ssl3;

      //createing HttpWebRequest after ServicePointManager settings
      HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://google.com/api/")

      If you create HttpWebRequest before the ServicePointManager settings it will fail and shows the error message.

      posted in Support
      C
      creigmalta_2650