We’re aware of an issue causing slower load times on the Dropbox Community forum. It should be resolved soon. Thanks for your patience! 

Forum Discussion

adelhoss's avatar
adelhoss
Explorer | Level 3
6 years ago

Could not create ssl tls secure channel .net library api

Hello my friends
I write simple winform application for download files from my account dropbox .
After few hour exception is raised :
Could not create ssl/tls secure channel .
I test on vps server in germany

5 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    6 years ago

    The Dropbox API servers are being served with valid SSL/TLS configurations, and I'm not aware of any current service disruptions that may cause this. It sounds like there may an issue with your network connection or system. Here are some threads that may be helpful:

  • adelhoss's avatar
    adelhoss
    Explorer | Level 3
    6 years ago
    After 12 hour activity show this exception ....
    Problem in your library ....
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    6 years ago

    If there's an issue with the official Dropbox .NET SDK, we'll be happy to look into it, but we'll need some more information. Please reply with:

    - the name and version number of the platform and SDK you are using
    - the steps to reproduce the issue, including relevant code snippet(s)
    - the full text of any error or unexpected output

  • SHommersom's avatar
    SHommersom
    New member | Level 2
    4 years ago

    I've encountered the same issue as you. I managed to fix it by adding the following lines of code

     


    ServicePointManager.Expect100Continue = true;
    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

     

    before calling the dropbox functions, e.g. in the Main() function of the application.

  • warnerjonn's avatar
    warnerjonn
    New member | Level 2
    4 years ago

    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# socket 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.

     

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!