We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
JoeShoshana
6 years agoExplorer | Level 3
Dropbox & ASP.NET integration
Hi,
I'm using dropbox.api for c# for downloading files.
in the console project it works perfectly but in the ASP.NET (for now localhost server)
is get stuck in dbx.Files,DownloadAsync Method. ...
Greg-DB
Dropbox Community Moderator
6 years agoCan you clarify what you mean when you say "is get stuck in dbx.Files,DownloadAsync Method"?
Are you getting any error or output?
- JoeShoshana6 years agoExplorer | Level 3
I'm not getting any error nor output
the program stop responding in the line: using (var response = await dbx.Files.DownloadAsync( "/" + folder + "/" + file)) with no excpetion being thrown
in app console it works great but in ASP.NET it get stuck
- Greg-DB6 years ago
Dropbox Community Moderator
Thanks for following up. There doesn't appear to be anything wrong in the code you posted, so there are a few things to check next:
- is there anything on your network connection, e.g., proxy, firewall, anti-virus, or other security software, that may be interfering with the connection?
- how big is the file that you're trying to download?
- how are you determining which line is hanging? Did you step through with the debugger?
- JoeShoshana6 years agoExplorer | Level 3
Q: is there anything on your network connection, e.g., proxy, firewall, anti-virus, or other security software, that may be interfering with the connection?
A: I've disabled all firewall and anti virus, no change. the console and the asp.net runs on the same copmuter(my pc). I've created a library that uses the DropboxAPI, and i use this library in both console and ASP.NET, which ,as i said , int console it works and in asp.net it didn't.
Q: how big is the file that you're trying to download?
A: 1mb(at most)
Q: how are you determining which line is hanging? Did you step through with the debugger?
A: Yes, i 've debugged the code the line which the code is hanged is: using (var response = await dbx.Files.DownloadAsync( "/" + folder + "/" + file))
About 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!