ajmal744 / google-api-dotnet-client

Automatically exported from code.google.com/p/google-api-dotnet-client
Apache License 2.0
0 stars 0 forks source link

Updating Google.Apis to 1.6.0-beta causes Directory_v1 calls to error. #408

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set up project with directory_v1 (1.5.0.16-beta) with Google.Apis 
(1.5.0-beta), create a call to retrieve a user with OAuth2.0
2. Add Drive.v2 to the project with NuGet, Google.Apis gets updated to 
1.6.0-beta, Google.Apis.Auth 1.6.0-beta is also added.
3. Compile and rerun.

What is the expected output? What do you see instead?
-Prior to adding Drive.v2 and updating Google.Apis, the user is retrieved. 
After, the following error is returned:
System.TypeLoadException: Method 'ApplyAuthenticationToRequest' in type 
'Google.Apis.Authentication.OAuth2.OAuth2Authenticator`1' from assembly 
'Google.Apis.Authentication.OAuth2, Version=1.4.0.28223, Culture=neutral, 
PublicKeyToken=null' does not have an implementation.

What version of the product are you using?
-see steps for versions
What is your operating system?
-windows 8.1, fully up to date at time of writing.
What is your IDE?
-Visual studio 2012
What is the .NET framework version?
-4.0 and 4.5 installed, project targeted to 4.0

Please provide any additional information below.
-As per the following blog post, I attempted to install the provided KB update 
but it was not applicable to my system. 
http://peleyal.blogspot.com/2013/10/applyauthenticationtorequest-errors.html

Original issue reported on code.google.com by squid...@gmail.com on 4 Nov 2013 at 4:33

GoogleCodeExporter commented 9 years ago
I recommend you first to upgrade your current solution to directory_v1 latest 
version (1.6.0-xx-beta) and then add Drive.v2 reference. Can you please do 
that, and let me know?

Original comment by pele...@google.com on 4 Nov 2013 at 6:52

GoogleCodeExporter commented 9 years ago
If I update to directory 1.6.0.18-beta (without adding Drive)  I get the 
following error:
Method 'HandleResponseAsync' in type 
'Google.Apis.Authentication.OAuth2.OAuth2Authenticator`1' from assembly 
'Google.Apis.Authentication.OAuth2, Version=1.5.0.28991, Culture=neutral, 
PublicKeyToken=null' does not have an implementation.

I just now noticed this error is actually different, and I'm thinking I didn't 
notice that specifically when I found the blog post (where I copied the error 
from to this bug, thinking it was the same). I apologize for the inaccuracy.

Original comment by squid...@gmail.com on 4 Nov 2013 at 11:28

GoogleCodeExporter commented 9 years ago
Try to upgrade this package by running  "Update-Package 
Google.Apis.Authentication" from your package manager console.

Original comment by pele...@google.com on 5 Nov 2013 at 4:12

GoogleCodeExporter commented 9 years ago
Try to upgrade this package by running  "Update-Package 
Google.Apis.Authentication" from your package manager console.

Original comment by pele...@google.com on 5 Nov 2013 at 4:13

GoogleCodeExporter commented 9 years ago
If I run that cmdlet before and after I update directory_v1 I get "No updates 
available for 'Google.Apis.Authentication' in project."

Original comment by squid...@gmail.com on 6 Nov 2013 at 4:47

GoogleCodeExporter commented 9 years ago
what is the content of your packages.config file? Can you add its content?

Original comment by Pele...@gmail.com on 6 Nov 2013 at 1:55

GoogleCodeExporter commented 9 years ago
Old problem. We were removing the DotNetOpenAuth dependency and improved the 
OAuth2.0 experience.

Feel free to reopen.

Original comment by pele...@google.com on 21 Apr 2014 at 5:32