Hi amigos.

I get an error when execute my little application Mono/C#....

Unhandled Exception: Google.GData.Client.GDataRequestException:
Execution of request failed: 
http://www.google.com/calendar/feeds/default/allcalendars/full
--->
 System.Net.WebException: The remote server returned an error: (401)
Authorizati
on required. at System.Net.HttpWebRequest.CheckFinalStatus
(System.Net.WebAsyncResult result) [0x00000]  at
System.Net.HttpWebRequest.SetResponseData System.Net.WebConnectionData
dat
a) [0x00000]  --- End of inner exception stack trace ---
  at Google.GData.Client.GDataRequest.Execute () [0x00000]
  at Google.GData.Client.GDataGAuthRequest.Execute (Int32
retryCounter) [0x00000]

I wrote the app from the examples of the code google page .NET.

        CalendarService myService = new CalendarService("exampleCo-
exampleApp-1");
        myService.setUserCredentials("[EMAIL PROTECTED]", "AbcDEEEE");

        CalendarQuery query = new CalendarQuery();
        query.Uri = new Uri("http://www.google.com/calendar/feeds/default/
allcalendars/full");
        CalendarFeed resultFeed = myService.Query(query);

        Console.WriteLine("Your calendars:\n");
        foreach (CalendarEntry entry in resultFeed.Entries)
        {
                Console.WriteLine(entry.Title.Text + "\n");
        }

Executing  this, i get the above error.....

The same program in Python execute without problems....

Thanks....

Rodrigo-A.

PD: Sorry for my Ingles....:-)




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