I am attempting to create a small web applet that allows users to view
their calendars on a start page portal.  This feature currently works
beautifully for the primary calendar, but when I attempt to adjust the
code to handle secondary and public calendars, I get the following
error:

Compiler Error Message: CS0246: The type or namespace name
'CalendarFeed' could not be found (are you missing a using directive
or an assembly reference?)

Using .NET C#

Even if I create a brand new page and use the example code with my own
User Credentials added, I still get the above error message.  I
suspect I am not loading the library or assembly, but I have:

using Google.GData.Calendar;
using Google.GData.Client;
using Google.GData.Extensions;

in the appropriate place and later:

// Create a CalenderService and authenticate
CalendarService myService = new CalendarService("TOAST-Calendar");
myService.setUserCredentials("USERNAME", "PASSWORD");

CalendarQuery query = new CalendarQuery();
query.Uri = new Uri("http://www.google.com/calendar/feeds/default/
allcalendars/full");
CalendarFeed resultFeed = service.Query(query);
Console.WriteLine("Your calendars:\n");
foreach (CalendarEntry entry in resultFeed.Entries)
{
    Console.WriteLine(entry.Title.Text + "\n");
}


My apologies if I am missing something obvious.  I am not an expert by
any stretch.  Any help or a point in the right direction is greatly
appretiated.
--~--~---------~--~----~------------~-------~--~----~
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