This project is read-only.

"File Not Found" Exception

Feb 26, 2012 at 2:03 AM

When trying to get a folder from dropbox I get an exception saying "File Not Found". Login works great because I'm just setting a breakpoint while logging in.

 

// Creating the cloudstorage object
CloudStorage dropBoxStorage = new CloudStorage();

// get the configuration for dropbox 
var dropBoxConfig = CloudStorage.GetCloudConfigurationEasy(nSupportedCloudConfigurations.DropBox);           
// set your own callback which will be called from DropBox after successful
// authorization
String _AuthorizationCallbackUri = "https://www.dropbox.com/";
config.AuthorizationCallBack = new Uri(_AuthorizationCallbackUri);
// create a request token
DropBoxRequestToken requestToken = DropBoxStorageProviderTools.GetDropBoxRequestToken(
                config,
                "ldt8idu1xnbkhw9",
                "i701lv6v3amnass");
// call the authorization url via WebBrowser Plugin
String AuthorizationUrl = DropBoxStorageProviderTools.GetDropBoxAuthorizationUrl(
                config, 
                requestToken);
System.Diagnostics.Process.Start(AuthorizationUrl);
// create the access token
ICloudStorageAccessToken accessToken = DropBoxStorageProviderTools.ExchangeDropBoxRequestTokenIntoAccessToken(
                config, 
                "ldt8idu1xnbkhw9", 
                "i701lv6v3amnass", 
                requestToken);

var publicFolder = dropBoxStorage.GetFolder("/Public", true);