Search code examples
c#.netfirefoxpicasa

Google Picasa error in firefox


I am currently developing the following code

List<Album> albums = new List<Album>();
GoogleService googleService = new GoogleService();

        PicasaService picasaService = googleService.CreatePicasaService(accessToken);
        AlbumQuery query = new AlbumQuery(PicasaQuery.CreatePicasaUri("default"));
        PicasaFeed feed = picasaService.Query(query);

        foreach (PicasaEntry entry in feed.Entries)
        {
            Album album = new Album();
            album.AlbumTitle = entry.Title.Text;
            AlbumAccessor ac = new AlbumAccessor(entry);
            album.NumberOfPhotos = (int)ac.NumPhotos;
            album.AlbumAuthor = ac.AlbumAuthor;
            album.AlbumAuthorNickname = ac.AlbumAuthorNickname;
            album.AlbumSummary = ac.AlbumSummary;
            album.Id = ac.Id;
            album.Access = ac.Access;
            album.PicUrl = entry.Media.Content.Url;

            albums.Add(album);
        }

that code is working fine when i run it in google chrome or in IE but when running it in Firefox i get the following error The remote server returned an error: (404) Not Found.

Source Error:

Line 56:             PicasaService picasaService = googleService.CreatePicasaService(accessToken);
Line 57:             AlbumQuery query = new AlbumQuery(PicasaQuery.CreatePicasaUri(Constants.CurrentUser));
Line 58:             PicasaFeed feed = picasaService.Query(query); <-- the error happened here 
Line 59: 
Line 60:             foreach (PicasaEntry entry in feed.Entries)

any suggestions ?


Solution

  • The problem was in query string Unicode i fixed this issue by encoding the AlbumQuery before send it to QueryFeed