Hi,
I'm trying to instatiate credentials in vb.net with visual studio 2012.
this is the code which I'm implementing:
Imports DotNetOpenAuth.OAuth2
Imports Google.Apis.Auth.OAuth2
'Imports Google.Apis.YouTubeAnalytics
Imports Google.Apis.Services
Imports Google.Apis.Books.v1
Imports Google.Apis.Books.v1.BooksService.Scope
Imports Google.Apis.Books.v1.Data
Imports Google.Apis.Util.Store
'Imports YoutubeManager.BooksService.Scope
Public Class ChannelReports
Private Sub StartInitialisation()
Dim scopes As IList(Of String) = New List(Of String)()
scopes.Add(Books)
Dim credential As UserCredential
Dim cs As New Google.Apis.Auth.OAuth2.ClientSecrets
cs.ClientId = "my client id from api.console"
cs.ClientSecret = "my clients secrets from api.console"
credential = GoogleWebAuthorizationBroker.AuthorizeAsync(cs, scopes, "user", CancellationToken.None, fs).Result
but to the credential I'm experiencing this error:
{"Could not load file or assembly
'Microsoft.Threading.Tasks.Extensions.Desktop, Version=1.0.16.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
The system cannot find the file
specified.":"Microsoft.Threading.Tasks.Extensions.Desktop, Version=1.0.16.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"}
I have try also with the method with Filestream, but the same error is showing.
Many thanks in advance for your help
Original issue reported on code.google.com by prominen...@gmail.com on 1 Feb 2014 at 4:39
Original issue reported on code.google.com by
prominen...@gmail.com
on 1 Feb 2014 at 4:39