This project is read-only.

c# dropbox problem

Nov 3, 2012 at 4:31 PM

Hi to all,

i am trying to connect to my dropbox account for upload, download files.

I am using the example

            var t = DropboxClient.GetAccessTokenInfo("key", "myusername@gmail.com", "myPassword");
            var cl = new DropboxClient("key", "2ndkey", t.Token, t.TokenSecret);
            var ai = cl.GetAccountInfo();

            var cm1 = new GetMetadataCommand();
            cm1.Path = "/warranty.docx";
            var rr = cl.GetMetadata(cm1);

But in my first line of code, my app stop withj error:

Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=b9a188c8922137c6' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

 

 

 

Nov 4, 2012 at 6:36 AM

Hi.
Get Newtonsoft.Json.dll from http://json.codeplex.com/
And add reference to your project.

regards