Ebeo / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Could not load file or assembly 'Google.GData.Client.. #488

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Pressing the Start Upload button in YouTubeUploader
2. In function UploadRow(DataGridViewRow row)
3. return InsertVideo throws an exception saying:

Could not load file or assembly 'Google.GData.Client, Version=1.7.0.1, 
Culture=neutral, PublicKeyToken=04a59ca9b0273830' or one of its dependencies. 
The located assembly's manifest definition does not match the assembly 
reference. (Exception from HRESULT: 0x80131040)

What is the expected output? What do you see instead?

It should upload the video properly - haven't touched the original code of this 
sample project. It just converted the project to the current Visual Studio 
version.

What version of the product are you using? On what operating system?

1.7.0.1 (Latest)
Windows Vista
Please provide any additional information below.

All the dlls are loaded properly - I've checked that the files exist and that 
the path is correct.
The dlls exist in the Debug library in the project

I'm using Visual Studio 2010

in the solution all the sample projects compile with no errors or warnings - 
except a project called gbase_demo

Original issue reported on code.google.com by bas...@baseem.net on 17 Mar 2011 at 6:20

GoogleCodeExporter commented 8 years ago
Can you try opening the Google Data API SDK.sln in the Src\ folder, rebuild it 
and then run the YouTubeUploader application again?

Original comment by ccherub...@google.com on 17 Mar 2011 at 6:23

GoogleCodeExporter commented 8 years ago
the Google Data API SDK builds with 3316 different errors starting with:
The type or namespace name 'NUnit' could not be found (are you missing a using 
directive or an assembly reference?)    D:\Documents\Google Data API 
SDK\Sources\Library\unittests\youtube\PrivateTest.cs

Original comment by bas...@baseem.net on 17 Mar 2011 at 6:41

GoogleCodeExporter commented 8 years ago
Quick update: I reinstalled the Google API SDK.. opened the project from the 
source folder - built with no errors. 
When I tried to run the YouTubeUploader it threw the exact same exception.
(I tried opening the project alone, I opening in the whole sample solution 
project)
Any ideas?

Original comment by bas...@baseem.net on 17 Mar 2011 at 6:56

GoogleCodeExporter commented 8 years ago
All NUnit errors can be solved by installing NUnit (www.nunit.org).

I'll check the other error as soon as possible.

Original comment by ccherub...@google.com on 17 Mar 2011 at 7:05

GoogleCodeExporter commented 8 years ago
Do you have other versions of the Google API SDK installed on your machine?

Original comment by ccherub...@google.com on 17 Mar 2011 at 7:05

GoogleCodeExporter commented 8 years ago
Nope.. and I did install the NUnit.. (Latest)
Still getting that error..

Original comment by bas...@baseem.net on 17 Mar 2011 at 7:10

GoogleCodeExporter commented 8 years ago
I got to mention that I installed both YouTube Google SDK for .NET and Google 
Data API

Original comment by bas...@baseem.net on 17 Mar 2011 at 7:16

GoogleCodeExporter commented 8 years ago
I also tried deleting the References for the dll and adding them again in 
another location.. same problem..

Original comment by bas...@baseem.net on 17 Mar 2011 at 7:22

GoogleCodeExporter commented 8 years ago
Have you also tried checking the code out from the repository with svn and 
building it?

http://code.google.com/p/google-gdata/source/checkout

Original comment by ccherub...@google.com on 17 Mar 2011 at 7:24

GoogleCodeExporter commented 8 years ago
No, how do I do that?

Original comment by bas...@baseem.net on 17 Mar 2011 at 7:42

GoogleCodeExporter commented 8 years ago
Download a Subversion command-line client from 
http://www.collab.net/downloads/subversion/ or a graphical tool like 
TortoiseSVN (http://tortoisesvn.tigris.org/) and the run the command found at 
http://code.google.com/p/google-gdata/source/checkout.

FYI, you can learn about Subversion from Wikipedia: 
http://en.wikipedia.org/wiki/Apache_Subversion

Original comment by ccherub...@google.com on 17 Mar 2011 at 7:47

GoogleCodeExporter commented 8 years ago
I'm having trouble exporting with TortoiseSVN it stops responding!
Do you have any other suggestions?

Original comment by bas...@baseem.net on 17 Mar 2011 at 8:32

GoogleCodeExporter commented 8 years ago
Problem Solved!!! There was a conflict with the assembly.. (in the warnings) it 
asked to fix it and it worked.. 
Thanks a lot!

Original comment by bas...@baseem.net on 17 Mar 2011 at 8:39

GoogleCodeExporter commented 8 years ago
You're welcome, closing this issue.

Original comment by ccherub...@google.com on 17 Mar 2011 at 8:43

GoogleCodeExporter commented 8 years ago
I have the same problem, everything seems to build fine.Would you please let me 
know how you solve it.
thanks

Original comment by hazemfa...@gmail.com on 27 Mar 2011 at 8:07

GoogleCodeExporter commented 8 years ago
Just go to the error window and follow the errors.. ( i forgot to do that )
you might need to install GUnit also

Original comment by bassi...@gmail.com on 27 Mar 2011 at 8:09

GoogleCodeExporter commented 8 years ago
If you are using Visual Studio 2008, just double click the error in the error 
list window VS will ask you to fix it automatically - it did by making changes 
in the app.config file entries for that assembly.
Here's the app.config file entry on my machine after the issue was fixed

<?xml version="1.0"?>
<configuration>
    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="Google.GData.Client" publicKeyToken="04A59CA9B0273830" culture="neutral"/>
                <bindingRedirect oldVersion="0.0.0.0-1.7.0.25712" newVersion="1.7.0.25712"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="Google.GData.Extensions" publicKeyToken="0B4C5DF2EBF20876" culture="neutral"/>
                <bindingRedirect oldVersion="0.0.0.0-1.7.0.25712" newVersion="1.7.0.25712"/>
            </dependentAssembly>
        </assemblyBinding>
    </runtime>
</configuration>

Original comment by kiran....@gmail.com on 17 Apr 2011 at 10:13