Hi Bob,

Thanks to Frank, he gave me some pointer to this problem you are
reporting.

It appears that this is a common issue for .NET 2.0 developers, and
hopefully a service pack will be available to fix this issue.  A fix
that appears to work is to do the following:

((GDataRequestFactory)yourService.RequestFactory).KeepAlive = false;

This seems to have fixed the issue. Note, that setting KeepAlive to
false will, in high volume/high frequence settings slow down your
performance. In that case, you would need to leave the setting alone,
and catch the exception and retry.

A more detailed explanation for this problem can be found in this
article -
http://www.simple-talk.com/community/blogs/dana/archive/2006/07/28/1484.aspx

Hope it helps,
Austin

On Oct 29, 2:00 am, Carver42 <[EMAIL PROTECTED]> wrote:
> I did another search and noticed that someone is having this problem
> with deletes.
>
> Mine is on adding events.  I am using .NET 2.0 (as was the other
> user).  Also using IE 7.
>
> It seems to be a timeout thing.
>
> I started the program, added one, then waited a few minutes and tried
> to add another one and it failed.  During my wait time, I did nothing
> on the compter at all - still failed.
>
> It seems to never happen on the first one.
>
> Sometimes I am able to step through a few pages on other websites
> without a problem, but if I go refresh the GoogleCal page, I am
> doomed.
>
> Here is a shortened version of the code:
>
> using System;
> using System.Collections.Generic;
> using System.ComponentModel;
> using System.Data;
> using System.Drawing;
> using System.Text;
> using System.Windows.Forms;
>
> using Google.GData.Client;
> using Google.GData.Extensions;
> using Google.GData.AccessControl;
> using Google.GData.Calendar;
>
> namespace WindowsApplication1 {
>     public partial class Form1 : Form {
>
>         public Form1() {
>             InitializeComponent();
>
>         }
>
>         private void ultraButton1_Click(object sender, EventArgs e) {
>             MakeAppt("myusername", "mypassword");
>
>         }
>         private void MakeAppt(string user, string pw) {
>
>             EventEntry evnt = new EventEntry();
>             evnt.Times.Add(new When(DateTime.Now,
> DateTime.Now.AddHours(1)));
>
>             evnt.Title.Text = "My Appt";
>
>             CalendarService _calService = new
> CalendarService("Sample");
>
>             Uri _UriCalendar = new Uri("http://www.google.com/calendar/
> feeds/" + user + "/private/full");
>
>             _calService.setUserCredentials(user, pw);
>
>             _calService.Insert(_UriCalendar, evnt);
>         }
>     }
>
> }
>
> Thanks for any help!
>
> Bob


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to