This project is read-only.

GetDropBoxRequestToken hangs on Windows Phone 7

Jun 21, 2012 at 7:27 AM
Edited Jun 21, 2012 at 7:27 AM

 

Just trying the code in the tutorial PDF. When it get's to "create a request token", the application just hangs. Any idea?
 // get the config of dropbox
            config = CloudStorage.GetCloudConfigurationEasy(nSupportedCloudConfigurations.DropBox) as DropBoxConfiguration;

            // set your own callback which will be called from DropBox after successful
            // authorization
            config.AuthorizationCallBack = new Uri(callbackurl);

            // create a request token
            requestToken = DropBoxStorageProviderTools.GetDropBoxRequestToken(config,
            key,secret);

            // call the authorization url via WebBrowser Plugin
            String AuthorizationUrl = DropBoxStorageProviderTools.GetDropBoxAuthorizationUrl(config, requestToken);

            authBrowser.Visibility = System.Windows.Visibility.Visible;
            authBrowser.Navigated += new EventHandler<System.Windows.Navigation.NavigationEventArgs>(authBrowser_Navigated);
            authBrowser.Navigate(new Uri(AuthorizationUrl));