Can you help me, I just got this error on Windows XP Pro (SP3)
System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
at Microsoft.Win32.TaskScheduler.V1Interop.ITaskScheduler.Activate(String Name, Guid& riid)
at Microsoft.Win32.TaskScheduler.TaskService.GetTask(ITaskScheduler iSvc, String name)
at Microsoft.Win32.TaskScheduler.TaskService.GetTask(String taskPath)
at SmartShare.schedulemanager.ScheduleSleep(Int32 idleSetting)
at SmartShare.My.MyApplication.MyApplication_Startup(Object sender, StartupEventArgs e)
Comments: ** Comment from web user: dahall **
System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
at Microsoft.Win32.TaskScheduler.V1Interop.ITaskScheduler.Activate(String Name, Guid& riid)
at Microsoft.Win32.TaskScheduler.TaskService.GetTask(ITaskScheduler iSvc, String name)
at Microsoft.Win32.TaskScheduler.TaskService.GetTask(String taskPath)
at SmartShare.schedulemanager.ScheduleSleep(Int32 idleSetting)
at SmartShare.My.MyApplication.MyApplication_Startup(Object sender, StartupEventArgs e)
Comments: ** Comment from web user: dahall **
What is the name of your task? Win XP treats tasks as files but it manipulates the filename. This error often occurs when the name of task, once manipulated, gets into a cycle where the manipulation conflicts with the name. It can also occur when the user account used to construct the TaskService instance does not have permissions on the C:\Windows\Tasks folder.