Search code examples
c#asp.netdropboxdropbox-api

Dropbox copy file to another account not working in C# using Dropbox.NET SDK API v2


I'm trying to copy a file from a dropbox account to another account. I'm trying the below code-

var client = new DropboxClient("c4zvSWqce");
await client.Files.CopyReferenceSaveAsync(strCopyRef, Path);

The CopyReference value is looking correctly but calling CopyReferenceSaveAsync showing error "no_permission". Please see the attachment. I couldn't find the reason for this error. Any help will be appreciated.

enter image description here


Solution

  • The documentation gives the following definition for that error:

    no_permission Void You don't have permission to save the given copy reference. Please make sure this app is same app which created the copy reference and the source user is still linked to the app.

    Perhaps the access tokens you're using (for source and destination) are not for the same app?