Start 2025 on time and up to date. Seamlessly integrate your calendars into Dropbox with these simple steps.
Forum Discussion
Melisek
3 years agoExplorer | Level 3
Token refreshing C#
I'm building an app in .net and accessing the app's folder for resources. So far everything is going smoothly, but i have no idea how to refresh the token in my app. I tried using the example code fr...
Melisek
Explorer | Level 3
Also found this error
An error occurred trying to start process 'https://www.dropbox.com/oauth2/authorize?response_type=code&client_id=XXXXXXXXXXXXXXX&redirect_uri=http%3A%2F%2F127.0.0.1%3A52475%2Fauthorize&state=a6a4da2fe0f44dfe91c14f6a0917c8ac&token_access_type=offline&scope=files.metadata.read files.content.read account_info.read' with working directory 'C:\Programming\C#\MelisekGameManager\MelisekGameManager\bin\Debug\net6.0-windows'. Can't find specified file.: Error: {0}
Greg-DB
3 years agoDropbox Staff
To clarify, are you seeing the NullReferenceException in addition to the "Can't find specified file" error, or are you no longer getting a NullReferenceException?
Either way, is that the entirety of the error/output you're getting? Please be sure to share the whole error/output and whatever details you can if not, as it's not quite clear here. For example, if your IDE shows which line something is failing on, please show that.
Anyway, it sounds like that "Can't find specified file" error is occurring when attempting to launch the authorization URL in the system browser, on the System.Diagnostics.Process.Start line, but is the authorization page actually launching in the browser or not? It's unclear why that would fail but it may depend on your particular environment. For example, it sounds similar to this issue.
- Melisek3 years agoExplorer | Level 3
That's the entirety of the error output unless this is also paired with the error output:
Exception thrown: „System.ComponentModel.Win32Exception” in System.Diagnostics.Process.dll
The nullreference shows because the dropbox client isn't getting assigned in the Run tast as it doesn't reach this point of the task. The authorization page doesn't open.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,926 PostsLatest Activity: 3 days ago
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!