This project has moved. For the latest updates, please go here.

Cant find the Task

Topics: Errors
Nov 15, 2013 at 4:41 AM
Edited Nov 15, 2013 at 4: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?
Coordinator
Nov 15, 2013 at 5:48 PM
You may need to run the program as Administrator. UAC can cause this problem.
Nov 17, 2013 at 11:43 AM
ok. I see how to get this done in an desktop application but, this code is in an asp.net web application that is hosted on IIS. How can I get it working there?
Coordinator
Nov 18, 2013 at 2:47 PM
There are a number of other discussion threads addressing permissions and IIS. Please do a search at the Discussions home page.