oauth - Errors running Google API calendar example for vb.net -
when try run this example in vbexpress 2010, following intellisense errors.
scopes.add(calendarservice.scopes.calendar.getstringvalue())
this line generates:
error 7 overload resolution failed because no accessible 'getstringvalue' specific these arguments: extension method 'public function getstringvalue() string' defined in 'google.apis.util.utilities': not specific. extension method 'public function getstringvalue() string' defined in 'google.apis.util.utilities': not specific.
additionally, these 2 lines each generate "not defined" error.
dim credentials fullclientcredentials = promptingclientcredentials.ensurefullclientcredentials() dim initializer new baseclientservice.initializer()
error 9 type 'baseclientservice.initializer' not defined.
error 8 type 'fullclientcredentials' not defined.
finally, line:
dim state iauthorizationstate = authorizationmgr.getcachedrefreshtoken(storage, key)
generates error:
error 15 'authorizationmgr' not declared. may inaccessible due protection level.
as first error, both google.apis.silverlight.google.apis.util.utilities
, google.apis.google.apis.util.utilities
has getstringvalue(system.enum) string
method.
any ideas of these errors?
update: excluding silverlight dll seems resolve first error ("not specific")
we published new sample using vb.net , oauth2. works in vs professional 2012. take - http://samples.google-api-dotnet-client.googlecode.com/hg/calendar.vb.consoleapp/readme.html
Comments
Post a Comment