Yes.

I am also experiencing the same error in 1.1.0.0 .NET library. It was working 
fine in 1.0.9.9

Any ideas ?

Thanks
Kulvinder Singh


----- Original Message ----
From: Charles Teel <[EMAIL PROTECTED]>
To: Google Calendar Data API <[email protected]>
Sent: Friday, October 5, 2007 11:15:41 PM
Subject: Re: Parsing Failure in .Net Library


I put the full error information below the line. The message that
comes with the exception that is thrown is "Parsing error". I am using
the latest version of the class libraries (1.1.0.0).

Here is the code that is being used:

ArrayList retval = new ArrayList();

CalendarService myService = new CalendarService("MobileGoogleTools");
myService.setUserCredentials(username, password);
EventQuery myQuery = new EventQuery();

myQuery.Uri = new Uri("http://www.google.com/calendar/feeds/";; +
calendarid + "/private/full");
myQuery.SortOrder = CalendarSortOrder.ascending;

EventFeed calFeed = myService.Query(myQuery);//Exception thrown here

while (calFeed != null && calFeed.Entries.Count > 0)
{
    foreach (EventEntry entry in calFeed.Entries)
    {
        retval.Add(entry.Title.Text);
    }

    if (calFeed.NextChunk != null)
    {
        myQuery.Uri = new Uri(calFeed.NextChunk);
        calFeed = myService.Query(myQuery) as EventFeed;
    }
    else
    {
        calFeed = null;
    }
}

return (string[])retval.ToArray(typeof(string));



Exception thrown
------------------------------------
Google.GData.Client.ClientFeedException: Parsing failed --->
System.ArgumentException: g:originalEvent/@id is required.
   at Google.GData.Extensions.OriginalEvent.CreateInstance(XmlNode
node, AtomFeedParser parser)
   at
Google.GData.Client.AbstractEntry.Parse(ExtensionElementEventArgs e,
AtomFeedParser parser)
   at Google.GData.Calendar.EventEntry.Parse(ExtensionElementEventArgs
e, AtomFeedParser parser)
   at Google.GData.Client.AbstractFeed.OnNewExtensionsElement(Object
sender, ExtensionElementEventArgs e)
   at Google.GData.Client.ExtensionElementEventHandler.Invoke(Object
sender, ExtensionElementEventArgs e)
   at Google.GData.Client.AtomFeed.OnNewExtensionElement(Object
sender, ExtensionElementEventArgs e)
   at Google.GData.Client.BaseFeedParser.OnNewExtensionElement(XmlNode
node, AtomBase baseObject)
   at
Google.GData.Client.BaseFeedParser.OnNewExtensionElement(XmlReader
reader, AtomBase baseObject)
   at
Google.GData.Client.AtomFeedParser.ParseExtensionElements(XmlReader
reader, AtomBase baseObject)
   at Google.GData.Client.AtomFeedParser.ParseEntry(XmlReader reader)
   at Google.GData.Client.AtomFeedParser.ParseSource(XmlReader reader,
AtomSource source)
   at Google.GData.Client.AtomFeedParser.ParseFeed(XmlReader reader,
AtomFeed feed)
   at Google.GData.Client.AtomFeedParser.Parse(Stream streamInput,
AtomFeed feed)
   --- End of inner exception stack trace ---
   at Google.GData.Client.AtomFeedParser.Parse(Stream streamInput,
AtomFeed feed)
   at Google.GData.Client.AtomFeed.Parse(Stream stream,
AlternativeFormat format)
   at Google.GData.Client.Service.Query(FeedQuery feedQuery)
   at Google.GData.Calendar.CalendarService.Query(EventQuery
feedQuery)
   at
MobileGoogleToolsServerSim.CalendarClass.GetEventsFromCalendar(String
calendarid, String username, String password) in C:\Documents and
Settings\Charles\My Documents\Visual Studio 2005\Projects\Mobile
Google Tools\MobileGoogleToolsServerSim\CalendarClass.cs:line 54


On Oct 5, 12:22 pm, Frank Mantek <[EMAIL PROTECTED]> wrote:
> What is the exact error you are getting?
>
> And what version of the library are you using?
>
> Also, can you send us the feed/http trace?
>
> Frank Mantek
> Google
> On Oct 5, 2007, at 6:18 PM, Charles Teel wrote:
>
>
>
>
>
> > Sorry, I forgot one thing. I am getting a parsing error if I don't
> > have a start date of one month ago or later. If I have a start date of
> > yesterday, no errors. If I have a start date of two months ago, I get
> > the parsing error.
>
> > On Oct 5, 10:53 am, Charles Teel <[EMAIL PROTECTED]>
> > wrote:
> >> I am doing just a general EventQuery for all the events in the
> >> calendar from one month back forward. However, I only get back one
> >> event, and I know for a fact that there are many more. Is it because
> >> the rest are recurring events?- Hide quoted text -
>
> - Show quoted text -




       
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. 
Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to