|
|
Re: Exception only on deployement !: msg#00127
|
Subject: |
Re: Exception only on deployement ! |
Normally this kind of problem is access control related, because while debugging you are normally running in admin privilege, where when deployed you are probabaly running as user with lot less access rights.
What's the exception detail when it throws? Does it even to out to the server and get a response? If so, what is the response detail?
Frank Mantek
On 8/21/06, Mehdi <mtaouti@xxxxxxxxxxxx> wrote:
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)
--~--~---------~--~----~------------~-------~--~----~
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 google-calendar-help-dataapi@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to google-calendar-help-dataapi-unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi -~----------~----~----~----~------~----~------~--~---
|
| |