This is most likely not an issue with the Google DLLs, but with the .NET runtime and you network setup (proxy servers etc in between you and Google).
I have seen similar issues in the past, and they were either related to proxies or dropped connections. Did you try turning off keep alive (per http://code.google.com/p/google-gdata/wiki/KeepAliveAndUnderlyingConnectionIsClosed)? I am not discounting a bug on our side, no code is perfect. But to know what the cause of this issue is, we need to see what is happening on the wire. Does the program never return, or does it time out after 5 minutes? Is it eating CPU cycles in the time? (it could conceivably iterate in an endless loop when it tries to parse the resulting feed - but to figure that out, i would need to see what the result is you got back etc....) Frank Mantek Google On Nov 15, 2007, at 2:12 AM, Jim wrote: > > Eamon, > > I made the change and although the entries are written to the calendar > the program still does not return to the command prompt. I'm > running .NET 2.0, both library and runtime.The program hangs at this > line; > > EventFeed batchResultFeed = (EventFeed)service.Batch(batchFeed, new > Uri(feed.Batch)); > > Could there be an issue with google dlls? > > Thanks, > > Jim > > On Nov 14, 1:49 pm, Eamon Nerbonne <[EMAIL PROTECTED]> wrote: >> Your code works on my machine if I fill in "http://www.google.com/ >> calendar/feeds/[EMAIL PROTECTED]/private/full" as the feedUri. >> >> You could try stepping through it or otherwise determining on which >> line it halts... >> >> On Nov 14, 7:13 pm, Jim <[EMAIL PROTECTED]> wrote: >> >>> Frank, >> >>> I am using Visual C# 2005 Express Edition, which I am assuming is >>> using .NET 2.0. The runtime is also 2.0. I haven't used fiddler >>> before >>> and when I say hang, I mean the program doesn't return to the >>> command >>> prompt. >> >>> Thanks, >> >>> Jim >> >>> On Nov 14, 2:26 am, Frank Mantek <[EMAIL PROTECTED]> wrote: >> >>>> There is some information we would need to have to help determine >>>> the >>>> issue: >> >>>> a) what version of .NET are you using? Library and runtime >>>> b) can you capture the HTTP flow? (fiddler on windows, httpscoop on >>>> mac, etheral anywhere else :)). >>>> c) what does "hang" mean? >> >>>> Frank Mantek >>>> Google >>>> On Nov 13, 2007, at 9:12 PM, Jim wrote: >> >>>>> I've written a console app to test batch processing. The test >>>>> entry is >>>>> added to my primary calendar but then the program hangs. Here's >>>>> the >>>>> code and any help would be greatly appreciated. >> >>>>> Jim >> >>>>> static void AddEntries(CalendarService service) >>>>> { >> >>>>> EventQuery query = new EventQuery(feedUri); >>>>> EventFeed feed = service.Query(query); >> >>>>> // create a batch entry to insert a new event. >>>>> EventEntry toCreate = new EventEntry(); >>>>> toCreate.Title.Text = "new event"; >>>>> toCreate.Content.Content = "test"; >> >>>>> When eventTime = new When(); >>>>> eventTime.StartTime = DateTime.Now; >>>>> eventTime.EndTime = eventTime.StartTime.AddMinutes(60); >>>>> toCreate.Times.Add(eventTime); >> >>>>> toCreate.BatchData = new GDataBatchEntryData(); >>>>> toCreate.BatchData.Id = "d"; >>>>> toCreate.BatchData.Type = >>>>> GDataBatchOperationType.insert; >> >>>>> // add the entries to new feed. >>>>> AtomFeed batchFeed = new AtomFeed(feed); >>>>> batchFeed.Entries.Add(toCreate); >> >>>>> EventFeed batchResultFeed = >>>>> (EventFeed)service.Batch(batchFeed, new Uri(feed.Batch)); >>>>> }- Hide quoted text - >> >>>> - Show quoted text - > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
