The good news is that it doesn't look like you're doing anything
fundamentally wrong :)

However, I'm not quite sure what's causing the problem you're
experiencing.  It seems as if the client isn't getting a response back
from the server in a resonable period of time and is throwing an
exception.

A few questions:
  1) How long is this taking to run?
  2) Are you doing anything else with your calendar while this is
running?  Ie, do you have another program running against the same
calendar.. or is this program running in multiple threads?
  3) Do you have any proxy servers in between your computer and Google
that you are aware of?

Cheers,

-Ryan

On Apr 1, 1:35 pm, "ekun" <[EMAIL PROTECTED]> wrote:
> Oops, I think I posted this on the wrong group originally, so if
> you're reading this again, my apologies... :)
>
> Hi all,
>
> I'm new to Google API's, so please pardon such a basic question.
> Basically, I just created a test function based off of the API
> Developers guide which would query an event from my calendar, and then
> delete it.  The query works fine so I know that my URI and
> CalendarService values are fine.  However, as soon as I try to delete
> the entry from the Calendar, I get a timeout exception at run time.
> Here's what my function looks like:
>
> public static void queryCalendar(Uri calendarURI, CalendarService
> service)
> {
>         EventQuery myQuery = new EventQuery(calendarURI.ToString());
>         myQuery.Query = "Tennis";
>         EventFeed myResultsFeed = service.Query(myQuery);
>         if (myResultsFeed.Entries.Count > 0)
>         {
>                 AtomEntry firstMatchEntry = myResultsFeed.Entries[0];
>                 Console.WriteLine("Query found {0}",
> firstMatchEntry.Title.Text);
>
>                 // Method 1: Causes a timeout exception at run-time
>                 myResultsFeed.Entries[0].Delete();
>
>                 // Method 2: Causes a timeout exception at run-time
>                 //service.Delete(myResultsFeed.Entries[0]);
>
>                 // Method 3: Causes a timeout exception at run-time
>                 // service.Delete(new
> Uri(myResultsFeed.Entries[0].EditUri.ToString()));
>
>         }
>
> }
>
> The exception that I keep receiving looks like this:
> Unhandled Exception: Google.GData.Client.GDataRequestException:
> Execution of request failed: http://www.google.com/calendar/feeds/[EMAIL 
> PROTECTED]/private/full/...
> ---> System.Net.WebException: The request timed out
>   at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult
> asyncResult) [0x00000]
>   at System.Net.HttpWebRequest.GetResponse () [0x00000]
>   at Google.GData.Client.GDataRequest.Execute () [0x00000] --- End of
> inner exception stack trace ---
>
>   at Google.GData.Client.GDataRequest.Execute () [0x00000]
>   at Google.GData.Client.GDataGAuthRequest.Execute (Int32 iRetrying)
> [0x00000]
>
> Am I just doing something fundamentally wrong, or has someone else
> ever run into this problem.  Any help at all would totally be
> appreciated.  Thank you!!!


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