change: //service.Update(entryResult); *entryResult.Update();* * * it should run you. I have the same. * *
Ramón Miñarro Romero 2009/11/30 Phan Thanh Vy <[email protected]> > Thanks for reply, > > But if i am not yet logged in, i would not received an EventEntry from > google calendar so that update it. > > Here is my code: > > CalendarService service = new > CalendarService("OmnciasaCalendar"); > service.setUserCredentials(user, pass); > > EventQuery query = new EventQuery(); > query.Uri = GetURI(servername); > > DateTime startTime = > Convert.ToDateTime(drAppointment[Tables.Agenda.StartTime]); > DateTime endTime = > Convert.ToDateTime(drAppointment[Tables.Agenda.EndTime]); > query.StartTime = startTime; > query.EndTime = endTime; > > EventFeed calFeed = service.Query(query) as EventFeed; > if (calFeed != null && calFeed.Entries.Count > 0) > { > EventEntry entry = null; > EventEntry entryResult = null; > foreach (AtomEntry atom in calFeed.Entries) > { > entry = atom as EventEntry; > if (entry.EventId == exchangeitemid) > { > entryResult = entry; > } > } > } > if(entryResult != null) > { > entryResult.Title.Text = "Updated" > service.Update(entryResult); > //entryResult.Update(); > } > > Thanks, > VyPhan > > > On Sat, Nov 28, 2009 at 9:37 PM, florent devin <[email protected]>wrote: > >> Hi, >> did you login to the calendar, before trying to update the event ? >> >> The error says that : i cannot access to the calendar . >> To access to a calendar, you have to login (or register). >> >> Hope this helps. >> >> 2009/11/28 thanhvyit <[email protected]> >> >> Hi, >>> >>> Please hep me update properties of an EventEntry in google calendar. >>> Method which i have used: >>> >>> CalendarService.Update(EventEntry) or EventEntry.Update() >>> >>> Error here: >>> Execution of request failed: >>> >>> http://www.google.com/calendar/feeds/default/private/full/emntb3eonps6r5ge933c9fak74/63395073448?gsessionid=IaL0eJwrJlSx6Q8gwmtbSQ >>> >>> Thanks and Best Regards, >>> VyPhan >>> >>> -- >>> >>> 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]<google-calendar-help-dataapi%[email protected]> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/google-calendar-help-dataapi?hl=en. >>> >>> >>> >> >> >> -- >> Florent Devin >> >> >> -- >> 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]<google-calendar-help-dataapi%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/google-calendar-help-dataapi?hl=en. >> > > > > -- > Thanh Vy > > -- > 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]<google-calendar-help-dataapi%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-calendar-help-dataapi?hl=en. > -- 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.
