GetDropBoxRequestToken hangs and does not return the requestToken in Windows Phone 8

Nov 6, 2013 at 10:28 AM
Edited Nov 6, 2013 at 10:31 AM
I'm trying to authenticate the DropBox user for my App using SharpBox in Windows Phone 8, but there is a problem.
The code works fine till GetDropBoxRequestToken and then it hangs. Please help me solve this issue. Below is the piece of code. Thanks in Advance.
         AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxConfiguration configuration = AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxConfiguration.GetStandardConfiguration();

        string consumerKey = "consumerKey"; // The consumer key
        string consumerSecret = "consumerSecret "; // The consumer secret

        AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxRequestToken requestToken=DropBoxStorageProviderTools.GetDropBoxRequestToken(configuration, consumerKey, consumerSecret);

        string AuthorizationUrl = DropBoxStorageProviderTools.GetDropBoxAuthorizationUrl(configuration, requestToken);