You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

JackLe295's avatar
JackLe295
Explorer | Level 3
3 years ago

Getting error with .net/C# on login

Hi there,

 

I'm using the Dropbox .net SDK version 6.24.0 for my winforms application. 

 

I use this method to get the URL for login 

 

 

 

 

DropboxOAuth2Helper.GetAuthorizeUri(OAuthResponseType.Token, "client ID", "redirect URI").ToString();

 

 

 

 

After entering the username, password and clicking Login, I get this message on top of the page

 

but it let me in and do my usual stuff like browsing folders/files. So what could be causing this error?

 

Any helps/suggestions are welcome. 

 

Thanks in advance

Jack

 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Thanks for the report. There's a known issue causing that message to be shown unnecessarily. The team is looking into it.

     

    By the way, from that screenshot, it looks like your app currently processes the OAuth app authorization flow inside a web view, instead of the system browser. The OAuth app authorization flow should be processed in the user's system browser. Processing it in a web view is not officially supported and is more prone to compatibility issue. See here for more information: https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize .

    • JackLe295's avatar
      JackLe295
      Explorer | Level 3

      Hi Greg,

       

      Thanks for your response about the known error. With regards to the authorization flow in the system web browser, the application is being deployed on a strict windows server which doesn't allow any other browsers to be installed, it only has Internet Explorer which doesn't support the Dropbox login. That's why I have to use the web view control for it.

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        That unexpected error message should be fixed now.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days ago
333 Following

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 or Facebook.

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!