On Feb 7, 5:14 pm, ekchow <[email protected]> wrote: > Hello there, > > I'm trying tocreateabatchprocessusing C# Web Service. I gave me > this error message > System.ArgumentNullException: Value cannot be null. > Parameter name: uriString > at System.Uri..ctor(String uriString) > > My code is as follow: > > CalendarService myService = new CalendarService("exampleCo- > exampleApp-1"); > myService.setUserCredentials("[email protected]", "XXXXX"); > > // Get some events to operate on. > CalendarQuery query = new > CalendarQuery("http://www.google.com/calendar/feeds/default/owncalendars/full"); > CalendarFeed feed = myService.Query(query); > > // Add the entries to a new feed > AtomFeed batchFeed = new AtomFeed(feed); > > //CreateGoogleCalendar > CalendarEntrycalendar= new CalendarEntry(); > calendar.Title.Text = "name"; > calendar.Summary.Text = "Thiscalendarcontains the > practice schedule and game times."; > calendar.TimeZone = "America/Los_Angeles"; > calendar.Hidden = false; > calendar.Color = "#2952A3"; > calendar.Location = new Where("", "", "room"); > > batchFeed.Entries.Add(calendar); > > CalendarFeed batchResultFeed = (CalendarFeed)myService.Batch > (batchFeed, new Uri(feed.Batch));
ekchow, Last I checked, we don't support batch operations on the calendar metafeed. You can only use batch operations on individual events within calendars. -- Trevor Johns --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
