angelazno / google-gdata

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

Can't load the dlls error #470

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Calling the function which makes a call to the dlls
2.
3.

What is the expected output? What do you see instead?
I'm trying to download videos by keywords -- but can't even get started.

What version of the product are you using? On what operating system?
The latest: 1.7.0.1   on Vista

Please provide any additional information below.

I'm working in vb.net as in visual basic --

Downloaded the youtube and gdata msi files. Installed them, added the 
references to my desktop app. Added import statements to my vb form.

Wrote some code. Got ready to debug.

Soon as I click the button that calls the function with the code, I get:

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)

Any help would be appreciated.

Joseph Love

Original issue reported on code.google.com by PhilipKW...@gmail.com on 19 Jan 2011 at 5:27

GoogleCodeExporter commented 8 years ago
Joseph,

Can you post your sample solution here so that I can reproduce the error?
Thanks

Claudio

Original comment by ccherub...@google.com on 19 Jan 2011 at 6:20

GoogleCodeExporter commented 8 years ago
Imports System.Net.Mail
Imports Google.GData.Extensions
Imports Google.GData.Extensions.MediaRss
Imports Google.GData.Extensions.Location
Imports Google.GData.YouTube
Imports Google.YouTube
Imports CookComputing.XmlRpc

Public Class MainForm
Private Sub ButtonCallYouTubeAPI_Click(ByVal sender As System.Object, 
Dim AppName As String = "TweetMaker"
Dim DevKey As String = "myAppKey"
Dim MaxNum As Integer = 2000

Dim ytRequestSettings As New Google.YouTube.YouTubeRequestSettings(AppName, 
DevKey)
ytRequestSettings.AutoPaging = True
ytRequestSettings.Maximum = MaxNum
Dim ytRequest As New Google.YouTube.YouTubeRequest(ytRequestSettings)

Dim url As String = 
"http://gdata.youtube.com/feeds/api/videos?orderby=relevance&vq=puppy"
Dim VidID As String = ""
Dim VidTitle As String = ""
Dim vids() As Google.YouTube.Video = Nothing
Say("FETCHING...")
For Each oneVideo As Google.YouTube.Video In 
ytRequest.GetStandardFeed(url).Entries
VidID = oneViddeo.Id
VidTitle = oneViddeo.Title
AppendToFile("K:\[ YOUTUBE VIDEOS ]\YouTubeAPITest.txt", VidID & ", " & 
VidTitle)
        Next
Say("ALL DONE!")
End Sub

Original comment by PhilipKW...@gmail.com on 19 Jan 2011 at 7:53

Attachments:

GoogleCodeExporter commented 8 years ago
I started a new app from scratch -- nothing on it and just the one button 
calling the YouTube API.

Visual Basic gave me some cryptic message about inconsistencies or some such 
and asked if I would like to correct them. I said yes.

The DLLs loaded. So problem solved.

But, alas, I do not know how to make the requests properly. Any clue as to 
where I can get help.

"Execution of request failed: 
http://gdata.youtube.com/feeds/api/videos?orderby=relevance&vq=puppy"

I want to call YouTube API and get as many video urls and titles per keyword as 
possible.
Then save them to a file.

Guess I will try the developer forum.

Thanks for your prompt reply before, though.

Main problem Solved.

Thanks

Joseph Love

Original comment by PhilipKW...@gmail.com on 19 Jan 2011 at 9:37

GoogleCodeExporter commented 8 years ago
Glad to hear that you fixed the issue.

I can open the YouTube feed at 
http://gdata.youtube.com/feeds/api/videos?orderby=relevance&vq=puppy without 
problems.

I'd recommend you going through the YouTube API Developer guide for .NET:

http://code.google.com/apis/youtube/2.0/developers_guide_dotnet.html

Original comment by ccherub...@google.com on 19 Jan 2011 at 10:04