You are using the logging request factory, maybe a bug in there? Try
using the default factory instead to see if that is related (i
actually do not believe so, but, heck, you never know).
Alternatively, try updating to the latest version.
Lastely, post the webrequest (http traffic without your credentials
please). The code as you have written it should work (it is quiet
similiar to some of the unittest code).
Frank Mantek
Google
On Mar 15, 2009, at 9:19 PM, kautilya wrote:
>
> i m unable to update any existing event , this code insert new event
> successfully But there is always an Exception at
> insertedEntry.Update
> (); . error code is 400 "Bad Request" and "Invalid request URI" in
> request factory Log " GDataLoggingRequestFactory-CS-Version=1.3.1.0"
>
>
> EventEntry entry = new EventEntry();
>
> entry.Title.Text = "kautilya kumar xc";
> entry.Content.Content = "Going to party toNight";
>
> Where eventLocation = new Where();
>
> eventLocation.ValueString = "Vijaypur Pool , Every thing
> is real";
>
> entry.Locations.Add(eventLocation);
> When eventTime = new When(DateTime.Now,
> DateTime.Now.AddHours(2));
> entry.Times.Add(eventTime);
>
> Uri postUri = new Uri("http://www.google.com/calendar/
> feeds/default/private/full");
>
> // Send the request and receive the response:
> EventEntry insertedEntry = service_cl .Insert(postUri,
> entry);
>
> insertedEntry.Content.Content = "party with friends";
>
> insertedEntry.Update();
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---