I would like to use SharpBox 1.03.261 with MonoTouch 4.03 on a Mac.
In the download of SharpBox I found these assemblies which I added to my MonoTouch project:
Then I try to run the following code:
DropBoxCredentials credentials = new DropBoxCredentials();
credentials.ConsumerKey = "myKey";
credentials.ConsumerSecret = "mySecret";
credentials.UserName = "myName";
credentials.Password = "myPassword";
DropBoxConfiguration configuration = DropBoxConfiguration.GetStandardConfiguration();
CloudStorage storage = new CloudStorage();
ICloudStorageAccessToken token = storage.Open(configuration, credentials);
Running this code result in the following Exception:
System.TypeLoadException: Could not load type 'System.Json.JsonReader' from assembly 'System.Json, Version=126.96.36.199, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.
Do I have to use different assemblies for MonoTouch? Or does it simply not run under MonoTouch? Running the same code (with the windows assemblies of SharpBox) under Windows 7 runs fine...
I would be very thankful for any kind of help!
By the way: I tried to recompile the SharpBox sources with MonoDevelop and MonoTouch. Doing so results in a build error:
Error CS0246: The type or namespace name `JsonReader' could not be found. Are you missing a using directive or an assembly reference? (CS0246) (AppLimit.CloudComputing.SharpBox.MonoTouch)