12 messages in com.googlegroups.google-calendar-help-dataapiRe: Batch processing in C#| From | Sent On | Attachments |
|---|---|---|
| Jim | 13 Nov 2007 12:11 | |
| Frank Mantek | 14 Nov 2007 02:26 | |
| Jim | 14 Nov 2007 10:13 | |
| Frank Mantek | 14 Nov 2007 10:56 | |
| Eamon Nerbonne | 14 Nov 2007 13:49 | |
| Jim | 14 Nov 2007 16:56 | |
| Jim | 14 Nov 2007 17:11 | |
| Frank Mantek | 15 Nov 2007 00:20 | |
| Frank Mantek | 15 Nov 2007 00:28 | |
| Jim | 15 Nov 2007 07:49 | |
| Frank Mantek | 15 Nov 2007 08:13 | |
| Frank Mantek | 16 Nov 2007 02:20 |
| Subject: | Re: Batch processing in C#![]() |
|---|---|
| From: | Jim (jim....@gmail.com) |
| Date: | 11/15/2007 07:49:24 AM |
| List: | com.googlegroups.google-calendar-help-dataapi |
Frank,
I loaded Skype onto my machine last night and now the app throws an exception that it is unable to make a connection. So, for the sake of my sanity I think I will just import the calendar data for now.
Thanks for your help.
Jim
On Nov 15, 12:20 am, Frank Mantek <fman...@gmail.com> wrote:
Sorry Jim.
I mean what version of the Google .NET library for GData are you using.
Can you send me the fiddler trace to my email ? Or cut the auth headers and post it here.
Frank Mantek Google On Nov 15, 2007, at 1:56 AM, Jim wrote:
Frank,
I'm using .NET library 2.0. Also, I installed fiddler and when I run the app I only see a request header and that's it.
Jim
On Nov 14, 10:57 am, Frank Mantek <fman...@gmail.com> wrote:
And what version of the .NET library are you using?
Frank Mantek Google On Nov 14, 2007, at 7:13 PM, Jim 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 <fman...@gmail.com> 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 -- Hide quoted text -




