kelvinRosa / 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

Could not load file or assembly , System.Net version 2.0.5.0 . #378

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I have MVC4 application using GoogleAPI to getting data from GoogleAnalytics. I 
am using DotNetOpenAuth for authentication .My application working fine on IIS7 
but when I deployed to IIS 6 it gives error . I don't have mapping errors.This 
error related to assembly reference.

Error msg - Could not load file or assembly 'System.Net Version 2.0.5.0 
regrettable = yes , Given assembly is not valid .

I have already added the System.Net version 2.1.10.0 in the reference .

Original issue reported on code.google.com by viv...@interfaceinfosoft.com on 18 Aug 2013 at 5:18

GoogleCodeExporter commented 9 years ago
This is the actual message 0- 

System.IO.FileLoadException: Could not load file or assembly 'System.Net, 
Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, 
Retargetable=Yes' or one of its dependencies. The given assembly name or 
codebase was invalid. (Exception from HRESULT: 0x80131047)

Original comment by viv...@interfaceinfosoft.com on 19 Aug 2013 at 5:49

GoogleCodeExporter commented 9 years ago
Inner Trace - 
=== Pre-bind state information ===
LOG: User = NA\vendoraurora
LOG: DisplayName = System.Net, Version=2.0.5.0, Culture=neutral, 
PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes
 (Fully-specified)
LOG: Appbase = 
file:///D:/Projects/SkyoDashBoardApplication_SASMPLE/SkyoDashBoardApplication/
LOG: Initial PrivatePath = 
D:\Projects\SkyoDashBoardApplication_SASMPLE\SkyoDashBoardApplication\bin
Calling assembly : Google.Apis, Version=1.4.0.28227, Culture=neutral, 
PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: 
D:\Projects\SkyoDashBoardApplication_SASMPLE\SkyoDashBoardApplication\web.config
LOG: Using host configuration file: 
LOG: Using machine configuration file from 
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\config\machine.config.

Original comment by viv...@interfaceinfosoft.com on 19 Aug 2013 at 2:07

GoogleCodeExporter commented 9 years ago
Did you try using the NuGet package?
Check this 
http://stackoverflow.com/questions/18060340/asp-net-using-analytics-reporting-ap
i-does-not-work-on-server StackOverflow issue. It had the same problem as you 
regarding loading the right System.Net version.

Original comment by pele...@google.com on 20 Aug 2013 at 7:00

GoogleCodeExporter commented 9 years ago
Do you still have the same problem?

Original comment by pele...@google.com on 14 Sep 2013 at 2:25

GoogleCodeExporter commented 9 years ago
I am having this problem too.  Worked fine on my Windows 7 development machine, 
moved it to a server running an older version of Windows and now I am getting 
binding errors to System.Net.dll

Original comment by Kyle2...@gmail.com on 14 Sep 2013 at 3:00

GoogleCodeExporter commented 9 years ago
No , I got the solution and its working fine .
On 9/14/13, google-api-dotnet-client@googlecode.com
<google-api-dotnet-client@googlecode.com> wrote:

Original comment by viv...@interfaceinfosoft.com on 14 Sep 2013 at 8:44

GoogleCodeExporter commented 9 years ago
Hi ,
    Checkout this link . It will help you .
    http://code.google.com/p/autofac/wiki/FrequentlyAskedQuestions

On Sat, Sep 14, 2013 at 2:13 PM, Vivek Singh Dhakrey <
vivekd@interfaceinfosoft.com> wrote:

Original comment by viv...@interfaceinfosoft.com on 16 Sep 2013 at 8:12

GoogleCodeExporter commented 9 years ago
Thanks - this worked for me.  Installed .NET 4 on the server I was deploying 
the app on, but hadn't ran an update check.    

Original comment by Kyle2...@gmail.com on 16 Sep 2013 at 12:44

GoogleCodeExporter commented 9 years ago
The full solution is as following:
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:53