Hello there,
I'm trying to create a batch process using 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);
//Create Google Calendar
CalendarEntry calendar = new CalendarEntry();
calendar.Title.Text = "name";
calendar.Summary.Text = "This calendar contains 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));
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---