title: Read history of a task on a remote server
body: <p>I want to access the history of task on a remote server. I tried this <a href="http://taskscheduler.codeplex.com/wikipage?title=Examples&amp;referringTitle=Documentation" rel="nofollow">library</a> and got stuck at the point, where I access the history. At the moment only the scheduled tasks are printed, but I would like to print their history as well. Does someone has an idea what is wrong?</p>
  
  <p>I'm a little concerned about the t.path variable because it looks like this "\taskname". Could this be the problem?</p>
  
  <pre><code>namespace Inbox_Workflow
  {
      class Program
      {
          static void Main(string[] args)
          {
              TaskService ts = new TaskService("\\server", "user", "abc", "abc");
              EnumAllTasks(ts);
              Console.ReadKey(true)
          }
  
          static void EnumAllTasks(TaskService ts)
          {
                  EnumFolderTasks(ts.RootFolder);
          }
  
          static void EnumFolderTasks(TaskFolder fld)
          {
              foreach (Task task in fld.Tasks)
                  ActOnTask(task);
          }
  
         static void ActOnTask(Task t)
          {
              Console.Write(t+" \n");
              TaskEventLog log = new TaskEventLog(t.Path);
              foreach (TaskEvent item in log)
                  Console.Write(item + " \n");
          }
  
      }
  }
  </code></pre>