I made an app that uses the Task Scheduler Managed Wrapper Library. When the app runs on Windows 7 or later, it works OK. But when it runs on Windows XP, it crashes on startup with a FileNotFoundException. I have no clue what causes this issue. Here is the stack trace. Any help? I need to make this app work in Windows XP.
2016-11-14 15:41:04,004 [1] FATAL - Hubo un error al ejecutar la aplicación
System.IO.FileNotFoundException: El sistema no puede hallar el archivo especificado. (Excepción de HRESULT: 0x80070002)
en Microsoft.Win32.TaskScheduler.V1Interop.ITaskScheduler.Activate(String Name, Guid& riid)
en Microsoft.Win32.TaskScheduler.TaskService.GetTask(ITaskScheduler iSvc, String name)
en Microsoft.Win32.TaskScheduler.TaskService.GetTask(String taskPath)
en Form1.Form1_Load(Object sender, EventArgs e)
2016-11-14 15:41:04,004 [1] FATAL - Hubo un error al ejecutar la aplicación
System.IO.FileNotFoundException: El sistema no puede hallar el archivo especificado. (Excepción de HRESULT: 0x80070002)
en Microsoft.Win32.TaskScheduler.V1Interop.ITaskScheduler.Activate(String Name, Guid& riid)
en Microsoft.Win32.TaskScheduler.TaskService.GetTask(ITaskScheduler iSvc, String name)
en Microsoft.Win32.TaskScheduler.TaskService.GetTask(String taskPath)
en Form1.Form1_Load(Object sender, EventArgs e)