Hello List.
I'm using C# API to access the Google calendar. I'm using it from
whithin my ASP .NET 2.0 C# web site.
While debuging from whithin my Visual Studio 2005 Everything works
fine. when I deploy on my server I get some exception.
NB: I only try to read some events titles. Here's the offending code:
List<string> list=null;
try
{
EventQuery query = new EventQuery();
query.Uri = new Uri(calendarURI);
query.StartDate = DateTime.Today;
query.EndDate = DateTime.Today.AddDays(20);
EventFeed calFeed = service.Query(query);
list = new List<string>();
foreach (EventEntry feedEntry in calFeed.Entries)
{
if(
feedEntry.Status != null &&
feedEntry.Status.equals(EventEntry.EventStatus.CONFIRMED)
&& feedEntry.Title.Text != null
)
list.Add(feedEntry.Title.Text);
}
}catch(Exception ex){
TTrace.Error.Send("Error: getCalendar() (Exception)
(Trace): ("+ex.Message+") ("+ex.StackTrace+")");
}
Here's the trace:
--------------------------------------------------------------
Error: getCalendar() (Exception) (Trace):
(Execution of request failed:
http://www.google.com/calendar/feeds/XXX@xxxxxxxxx/private/full?updated-min=2006-08-21T00:00:00+02:00&updated-max=2006-09-10T00:00:00+02:00)
( at Google.GData.Client.GDataGAuthRequest.Execute() in
D:\XXX\cs\src2\Core\gauthrequest.cs:line 485
at Google.GData.Client.Service.Query(Uri queryUri) in
D:\XXX\cs\src2\Core\service.cs:line 131
at Google.GData.Calendar.CalendarService.Query(FeedQuery feedQuery)
in D:\XXX\cs\src2\CalendarService\calendarservice.cs:line 64
---------------------------------------------------------------------------------------------
Hopefully someone can shed some light.
Remember that it does work properly from whithin Visual Studio 2005
(Debug time). But raises an exception when deployed on the server (IIS
6.0)
|