Hi Ryan, Thanks for the response! So to answer your questions:
1.) It's taking about 2 minutes to return 2.) I'm not doing anything else with my calendar nor am I running multiple threads. 3.) There shouldn't be any proxy servers between me and Google unless Comcast has some kind of funky configuration. I did try to catch the exception this time and this is the actual message that was output: "Execution of request failed: http://www.google.com/calendar/feeds/[EMAIL PROTECTED]/private/full/...1585" I also wanted to mention that I'm using mono on Linux, which was originally giving me authentication problems because by default Mono blocks everything related to web requests. I got past that problem by using the mozroots.exe program to add all Mozilla certificates to Mono (http://www.mono-project.com/FAQ:_Security), which allows me to authenticate with Google, query events, and create events. I figured that if I could get that far, then deleting an event shouldn't be a problem, but perhaps mono doesn't like me sending a feed request to that specific event uri? That's probably not the case, but I just thought I'd mention it. Thanks for helping me out :) - Elliott On Apr 1, 3:32 pm, "Ryan Boyd (Google)" <[EMAIL PROTECTED]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
