On Mon, Dec 15, 2008 at 6:22 PM, [email protected] <[email protected]> wrote: > > > On Dec 10, 6:29 am, RodrigoA <[email protected]> wrote: >> 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....:-) > > Hi, Rodrigo. > > I experience the same problem with calendar API and Mono. > While Windows version of console Calendar sample works pretty good (I > tried both frameworks: .NET 1.1 with API 1.1.3.0 and .NET 2.0 with API > 1.2.3), Mono still reports: > Unhandled Exception: Google.GData.Client.GDataRequestException: > Execution of request > failed: http://www.google.com/calendar/feeds/default ---> > System.Net.WebException: The remote server returned an error: (401) > Unauthorized. > at System.Net.HttpWebRequest.CheckFinalStatus > (System.Net.WebAsyncResult result) [0x00000] > at System.Net.HttpWebRequest.SetResponseData > (System.Net.WebConnectionData data) [0x00000] --- End of inner > exception stack trace --- > > at Google.GData.Client.GDataRequest.Execute () [0x00000] > at Google.GData.Client.GDataGAuthRequest.Execute (Int32 iRetrying) > [0x00000] > > Does anyone succeed with any version Calendar sample on Mono? > What did I miss in Mono environment setup? > > Thanks, > Mitry. > > PS. I use openSUSE 11.0 VMWare image with Mono 2.0.1 installed for > tests.
I recommend posting this on the .NET client support group, since if this works on Windows but not under Unix, then this is a problem with the client rather than the Calendar API itself. http://groups.google.com/group/gdata-dotnet-client-library The people there should be better able to help you out. :) -- Trevor Johns --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
