Can you give me the rest of your code, so we can debug this ? The problem you described sounds like a redirection follow that doesn't have the token attached.
Austin On Fri, Mar 7, 2008 at 6:51 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > When querying the calendar for event infomation I am sometimes > receiving the error message: > > The remote server returned an error: (401) Unauthorized. > > When I try the same operation a second time, no error is thrown. This > issue is not consistent. Sometime I can go through several operations > without experiencing this and others is happens all of the time. I am > working on a .NET application using the v 1.1.3 of the .NET libraries. > > Here is the line of code that the error occurs: > > Dim CalFeed As EventFeed = MyCalService.Query(query) > > Here is the stack trace information: > > > [WebException: The remote server returned an error: (401) > Unauthorized.] > System.Net.HttpWebRequest.GetResponse() +1529755 > Google.GData.Client.GDataRequest.Execute() +56 > > [GDataRequestException: Execution of request failed: > > http://www.google.com/calendar/feeds/default/private/full?start-min=2008-02-08T08:26:15-06:00&start-max=2008-09-07T08:26:15-05:00 > ] > Google.GData.Client.Service.Query(Uri queryUri, DateTime > ifModifiedSince) +118 > Google.GData.Client.Service.Query(FeedQuery feedQuery, DateTime > ifModifiedSince) +162 > Google.GData.Client.Service.Query(FeedQuery feedQuery) +48 > Google.GData.Calendar.CalendarService.Query(EventQuery feedQuery) > +5 > GoogleCalendarPOC._Default.Page_Load(Object sender, EventArgs e) in > C:\Applications\GoogleCalendarPOC\GoogleCalendarPOC\Default.aspx.vb:24 > System.Web.UI.Control.OnLoad(EventArgs e) +99 > System.Web.UI.Control.LoadRecursive() +47 > System.Web.UI.Page.ProcessRequestMain(Boolean > includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) > +1061 > > As mentioned this problem is intermittent. Any help or direction > would be appreciated. > > Regards, > > Mike Garza > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
