It's certainly not the code itself, but you could be hitting a bug in the parser. Composite feeds are not widely used, so there might be cases where it does not work well in the .NET libraries due to limited exposure. I just tested reading my own composite feed, and that worked well...
Hence it must be the incoming data. Do you think you can send us an xml file to test with? Regards Frank Mantek Google On 4/8/07, Marsupi <[EMAIL PROTECTED]> wrote: > > > Hi, > > I'm using the version 1.0.9.4. Here is an example of code that causes > the Parse Exception. If you can't reproduce it, can you maybe provide > an example with a composite feed? > > Cheers > > > //--------------------------- > // store data > calendarURI = "http://www.google.com/calendar/feeds/default/ > private/composite"; > this.username = username; > this.password = password; > > service = new CalendarService("MyCalendarApp2"); > if (username != null && username.Length > 0) > { > service.setUserCredentials(username, password); > } > > // build query > FeedQuery query = new FeedQuery(); > // only get event's for today - 1 month until today + 1 year > > query.Uri = new Uri(calendarURI); > > query.StartDate = DateTime.Now.AddDays(-28); > query.EndDate = DateTime.Now.AddMonths(6); > > EventFeed calFeed = service.Query(query); > //--------------------------- > > On 8 Apr., 00:58, "Ryan Boyd (Google)" <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Can you please tell me what version of the .NET client library you are > > using, so that we can try and reproduce the problem you're having? > > > > Thanks, > > > > -Ryan > > > > On Mar 31, 1:22 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > I often get a ClientFeedException ("ParsingFailed") when i try to read > > > a Composite feed with the calendar demo Application or with my own > > > Application. The Full feed can be read without a problem. > > > > > Im not sure, but i think the reading of the composite feed worked with > > > the same demo application a week ago. > > > > > The demo application shows in the output window some debugging > > > information before the exception is thrown. Maybe this helps to figure > > > out the error. > > > > > Any help is welcome! > > > > > Thanx > > > > > Debugging Output > > > -------------------------- > > > TraceCall: creating target Uri > > > TraceCall: creating target Uri > > > 22:04:09:7130 - Service.Query - Stream - Enter > > > TraceCall: GoogleAuth: Execution called > > > Network credentials found > > > set token called with: > > > DQAAAG0AAACGHGav8N90sy1dBEL63AWHUSoJ4Cm4rtUg3nZcb_z5Al9Rjef-RYenO4- > > > > X1prJ-7aYeuevp7VCt5EEpx605w6LxqG2balZt_H_0yA2qUDjAnQdEo0m59FwHIRWPcv96hlkmzb3vAhYoeflCOz7hTfW > > > Using auth token: > > > DQAAAG0AAACGHGav8N90sy1dBEL63AWHUSoJ4Cm4rtUg3nZcb_z5Al9Rjef-RYenO4- > > > > X1prJ-7aYeuevp7VCt5EEpx605w6LxqG2balZt_H_0yA2qUDjAnQdEo0m59FwHIRWPcv96hlkmzb3vAhYoeflCOz7hTfW > > > TraceCall: calling the real execution over the webresponse > > > Returned contenttype is: application/atom+xml; charset=UTF-8 from > > > URI : > http://www.google.com/calendar/feeds/default/private/composite?start-... > > > Returned statuscode is: OK200 > > > 22:04:10:9490 - Service.Query - Stream - Exit > > > TraceCall: creating target Uri > > > TraceCall: Constructing AtomFeed > > > 'Calendar.vshost.exe' (Managed): Loaded 'C:\Windows\assembly > > > \GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll', Skipped > > > loading symbols. Module is optimized and the debugger option 'Just My > > > Code' is enabled. > > > TraceCall: parsing stream -> Start:Atom > > > TraceCall: Initializing basenametable support > > > TraceCall: Initializing atom nametable support > > > TraceCall: received new extension element notification > > > calling event dispatcher > > > new AtomEntry found, adding to collection > > > TraceCall: received new extension element notification > > > calling event dispatcher > > > new AtomEntry found, adding to collection > > > TraceCall: received new extension element notification > > > calling event dispatcher > > > new AtomEntry found, adding to collection > > > TraceCall: received new extension element notification > > > calling event dispatcher > > > new AtomEntry found, adding to collection > > > Found NULL service, probably mistake > > > Found NULL service, probably mistake > > > TraceCall: received new extension element notification > > > calling event dispatcher > > > TraceCall: received new item notification > > > calling event dispatcher > > > Found NULL service, probably mistake > > > Found NULL service, probably mistake > > > TraceCall: received new extension element notification > > > calling event dispatcher > > > TraceCall: Constructing AtomFeed > > > TraceCall: parsing stream -> Start:Atom > > > TraceCall: Initializing basenametable support > > > TraceCall: Initializing atom nametable support > > > TraceCall: received new extension element notification > > > new AtomEntry found, adding to collection > > > Found NULL service, probably mistake > > > TraceCall: received new item notification > > > Feed parsed found, parsing is done... > > > TraceCall: received new item notification > > > A first chance exception of type 'System.NullReferenceException' > > > occurred in Google.GData.Client.dll > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google 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-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
