This project has moved and is read-only. For the latest updates, please go here.

Cant find the Task

Topics: Errors
Nov 15, 2013 at 5:41 AM
Edited Nov 15, 2013 at 5:41 AM
So this is what I am doing
using (TaskService ts = new TaskService())
            if (ts.Connected)
                    Task task = ts.FindTask("RunAppTask");
This works fine on local Win7 machine but returns null for task on server 2008.

I can see "RunAppTask" in side Library under a Folder when I open Task Scheduler on server.
ts,Connected is always true.

What am I missing? Do I have to add special permissions?
Nov 15, 2013 at 6:48 PM
You may need to run the program as Administrator. UAC can cause this problem.
Nov 17, 2013 at 12:43 PM
ok. I see how to get this done in an desktop application but, this code is in an web application that is hosted on IIS. How can I get it working there?
Nov 18, 2013 at 3:47 PM
There are a number of other discussion threads addressing permissions and IIS. Please do a search at the Discussions home page.