caroalvarezsilva / google-gdata

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

Version problem #484

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When i try to use the api using this code

Dim videoEntryUrl As New 
Uri("http://gdata.youtube.com/feeds/api/videos/ADos_xW4_J0")
        Dim video As Video = Request.Retrieve(Of Video)(videoEntryUrl)

The Video type display this error:

The project currently contains references to more than one version of 
Google.GData.Client direct reference to version 1.4.0.2 and an indirect 
reference (through 'Google.GData.YouTube.YouTubeQuery') to version 1.7.0.25712 
. Change the direct reference to use version 1.7.0.25712 Google.GData.Client.

Does anyone has seen this issue?

I´m using the latest library version

Original issue reported on code.google.com by ralejand...@gmail.com on 8 Mar 2011 at 9:14

GoogleCodeExporter commented 8 years ago
It looks like you are referencing both old and new dlls in your projects.
Try to rebuild the solution or double check your references to only use the 
latest assemblies.

Original comment by ccherub...@google.com on 8 Mar 2011 at 9:24

GoogleCodeExporter commented 8 years ago
Hi, I am only referencing the new assemblies. I just added references to the
downloaded dlls, included in the msi

Original comment by ralejand...@gmail.com on 8 Mar 2011 at 9:27

GoogleCodeExporter commented 8 years ago
Can you share your solution?

Original comment by ccherub...@google.com on 8 Mar 2011 at 9:31

GoogleCodeExporter commented 8 years ago
I created a new solution and now the version problem is solved.

But now the request variable is not recognized

this is the code

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Google.GData.Client;
using Google.GData.Extensions;
using Google.GData.YouTube;
using Google.GData.Extensions.MediaRss;
using Google.YouTube;

namespace TestApp
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Uri videoEntryUrl = new Uri("
http://gdata.youtube.com/feeds/api/videos/ADos_xW4_J0");
            Video video = *request*.Retrieve<Video>(videoEntryUrl);
        }
}
}
On Tue, Mar 8, 2011 at 10:26 AM, Rene Alejandro Vazquez Moreno <
ralejandrovm@gmail.com> wrote:

Original comment by ralejand...@gmail.com on 8 Mar 2011 at 10:11

GoogleCodeExporter commented 8 years ago
In my project I referenced version 1.7.0.1 of 

- Google.GData.Client.dll
- Google.GData.Extensions.dll
- Google.GData.YouTube.dll

from the GAC and the solution built and ran correctly.

Original comment by ccherub...@google.com on 8 Mar 2011 at 1:12