Attempted to perform an unauthorized operation.

Aug 28, 2012 at 4:02 PM


could you please tell me which version are you using, im been trying to get open connection but i got erroe saying "Attempted to perform an unauthorized operation."

here is my code:

   static void Main(string[] args)        {       

    // Creating the cloudstorage object           

CloudStorage dropBoxStorage = new CloudStorage();
            // get the configuration for dropbox          

  AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxConfiguration dropBoxConfig = AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxConfiguration.GetStandardConfiguration();
          //  DropBoxConfiguration dropBoxConfig = CloudStorage.GetCloudConfigurationEasy(nSupportedCloudConfigurations.DropBox) as DropBoxConfiguration;                       // declare an access token           

ICloudStorageAccessToken accessToken = null;                      

// load a valid security token from file         

  using (FileStream fs = File.Open(@"C:\token.txt", FileMode.Open, FileAccess.Read, FileShare.None))           

{                accessToken = dropBoxStorage.DeserializeSecurityToken(fs);               

// Open connection to Dropbox
                //ICloudStorageAccessToken storageToken = dropBoxStorage.Open(dropBoxConfig, accessToken);
                // Serialize the token to disk               



var storageToken = dropBoxStorage.Open(dropBoxConfig, accessToken);


Please help.