doesn't show all tasks on win 2003

Topics: Errors
Aug 13, 2014 at 10:42 AM
Edited Aug 13, 2014 at 10:51 AM
hi
TaskService doesn't show all tasks on Windows 2003.
I couldn't figure out why some tasks do show and some do not.

the code is
public void ShowTasks()
{
    using (var service = new TaskService())
    {
        foreach (var task in EnumerateFolderTasks(service.RootFolder))
        {
            Console.WriteLine("{0}", task.Name);
        }
    }
}

IEnumerable<Task> EnumerateFolderTasks(TaskFolder folder)
{
    foreach (var task in folder.Tasks)
    {
        yield return task;
    }

    foreach (var sfld in folder.SubFolders)
    {
        foreach (var task in EnumerateFolderTasks(sfld))
        {
            yield return task;
        }
    }
}
Aug 13, 2014 at 10:45 AM
looks like it fails to show tasks which names end with .com.
Seems like a bug.
Coordinator
Aug 18, 2014 at 4:18 PM
I'll look into how I can work around this bug in the native library in the wrapper. I really like this idea of being able to enumerate all tasks regardless of folder. I hope you don't mind if I add this capability to the wrapper.
Aug 18, 2014 at 5:23 PM
I'm seeing a similar problem when trying to access tasks on a remote server 2008. It only returns the first task from server 2008, but works fine for server 2003. Any thoughts?
Coordinator
Aug 18, 2014 at 11:27 PM
I think I have corrected the problem here and the changes are in the latest source code and will be included in the 2.2.1 release.
Aug 19, 2014 at 9:09 AM
awesome. Seems to be fixed.
what's the planned release date?
Coordinator
Aug 22, 2014 at 2:51 PM
At least a couple of weeks. I'm adding a requested feature around event based triggers that is taking some real effort.