This project has moved and is read-only. For the latest updates, please go here.

VB Demo OAuth Error

Sep 24, 2009 at 6:02 PM

I was getting InvalidOperationException with the error message DesktopOAuthAuthorization.GetVerifier must be set first.

This was when running the LinqToTwitterDemoVB project.

There is one line in Module1.vb which is at fault as it's checking against the wrong type when deciding whether to init the verifier callback.  I checked out revision 59051 and the bad line number is 29.

The original line:

If twitterCtx.AuthorizedClient.GetType() Is GetType(OAuthAuthorization) Then

But it should read:

If twitterCtx.AuthorizedClient.GetType() Is GetType(DesktopOAuthAuthorization) Then

I hope this can be of use to someone!

Other than that (and so far ;)) it seems to do exactly what it says on the tin.  Nice work guys.  :)

Sep 24, 2009 at 6:29 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Sep 24, 2009 at 6:30 PM

Community contributions always appreciated - thank you!