I'm following the sample code in the help file for consuming a web service:
SchedulingService scheduler = new SchedulingService();
scheduledEvents = (EntityCollection) scheduler.GetScheduledEvents(month, year);
GetScheduledEvents() looks like:
[WebMethod]
public EntityCollection GetScheduledEvents(int Month, int Year) {
Objects.SchedulingService schedulingService = new Objects.SchedulingService();
return schedulingService.GetScheduledEvents(Month, Year);
}
The second line in the first code block
scheduledEvents = (EntityCollection) scheduler.GetScheduledEvents(month, year);
has the following compiler error:
Cannot convert type 'System.Data.DataSet' to 'HelperClasses.EntityCollection'
Any idea what's happening here?
Thanks.