MyOwnClone / google-api-dotnet-client

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

Error Message: 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 #395

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using .Net Google calendar API V3 for my app. I'm using .Net 4.0 and IIS 
6.0 

I'm getting the below error when I try to add an event to calendar.

Error Message: 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

the code works fine on my local machine and on of the DEV servers with windows 
2003 R2, IIS 6.0 while on QA server with same config I'm getting the error. 

----- what I've tried.-------
I've added dependent assembly
<dependentAssembly>
        <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-2.1.10.0" newVersion="2.1.10.0"/>
</dependentAssembly>

as the System.Net.Http.dll is in the bin folder, even I copied the 
System.Net.Http.dll and pasted it in 
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319 folder and System.Net.dll is 
already present in the location.

I've not figured out the solution and its' quite amusing as it works on one 
similar environment and not on another, and this is quite critical issue.

I would appreciate if somebody could help me with this.

Original issue reported on code.google.com by mahesh...@gmail.com on 26 Sep 2013 at 8:47

GoogleCodeExporter commented 9 years ago
Can you check this thread 
https://code.google.com/p/autofac/wiki/FrequentlyAskedQuestions and let me know 
ASAP?

Thanks

Original comment by pele...@google.com on 27 Sep 2013 at 2:41

GoogleCodeExporter commented 9 years ago
hi pele...@google.com,

I couldn't relate to the link you pointed out to the issue I'm facing, could 
you please  be more specific?

the server where I deployed the code got .Net framework upgraded from 2.0 to 
4.0 client profile only for this project. So the upgrade miss some dll's 
upgradation? or is it something else.

Thanks,
Mahesh

Original comment by mahesh...@gmail.com on 30 Sep 2013 at 9:10

GoogleCodeExporter commented 9 years ago
1. Make sure your .NET framework is patched. Microsoft released patches to .NET 
to allow Portable Class Libraries to properly find the appropriate runtime 
(KB2468871). If you are seeing the above exception (or something like it), it 
means you're missing the latest .NET framework patches.

2. Please install .NET 4.0 full profile and NOT client profile.

3. By the way I see you are using an old version of the library (1.4.0), please 
upgrade to (1.5.0). All our Google.Apis packages are available to download 
using NuGet 
(https://www.nuget.org/packages?q=google.apis&prerelease=true&sortOrder=relevanc
e)

Let me know.

Original comment by pele...@google.com on 30 Sep 2013 at 12:28

GoogleCodeExporter commented 9 years ago
I wanted to try out and got the .Net 4.0 framework re-installed and it
worked.

Thanks for looking into the issue.

Original comment by mahesh...@gmail.com on 3 Oct 2013 at 4:56

GoogleCodeExporter commented 9 years ago
We found the solution - 
1. Make sure your .NET framework is patched. Microsoft released patches to .NET 
to allow Portable Class Libraries to properly find the appropriate runtime 
(KB2468871). If you are seeing the above exception (or something like it), it 
means you're missing the latest .NET framework patches.

2. Install .NET 4.0 full profile 

Original comment by pele...@google.com on 3 Oct 2013 at 12:52