1
Vote

Dropbox connecting with mono on linux

description

I have been trying to connect to Dropbox by using monodevelop and mono (2.10.8.1) on Ubuntu. This doesn't work, but when I try the same thing on Mac, with monodevelop and mono, it does work. The code I created is as followed:
 
        DropBoxConfiguration config;
        config = DropBoxConfiguration.GetStandardConfiguration ();
        config.AuthorizationCallBack = new Uri (this.RedirectUrl);
        _reqToken = DropBoxStorageProviderTools.GetDropBoxRequestToken (
            config,
            this.ConsumerKey,
            this.ConsumerSecret
        );

        if (_reqToken == null)
            throw (new FetchingRequestTokenFailedException ());
 
        // Request the url
        this.AuthorizationUrl = DropBoxStorageProviderTools.GetDropBoxAuthorizationUrl (config, _reqToken);
 
The exception I receive is as followed:
 
System.NullReferenceException: Object reference not set to an instance of an object
at AppLimit.CloudComputing.SharpBox.Common.Net.oAuth.Impl.OAuthUrlGenerator.GenerateAuthorizationUrl (System.String baseAuthorizeUrl, System.String callbackUrl, AppLimit.CloudComputing.SharpBox.Common.Net.oAuth.Token.OAuthToken requestToken) [0x00000] in <filename unknown>:0
at AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxStorageProviderTools.GetDropBoxAuthorizationUrl (AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxConfiguration configuration, AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxRequestToken DropBoxRequestToken) [0x00000] in <filename unknown>:0
 
I wanted to try to use the sourcecode to debug (instead of the binary release), but the strange thing is, that the binaries I downloaded are version 1.2, while the source code (also the 1.2 branche) show version 1.1. How can I get the 1.2 sources?

comments

peterhagen wrote Jun 5, 2012 at 8:58 AM

Ah, the issue is because the default installation of Mono (under linux?) doesn't check or validate the https certificates. So, that is solved. But, how about the 1.2 source code. Is the branch-1.2 really the 1.2 code? Cause the version number in the assemblyinfo shows 1.1