FileNotFoundException when running on Windows Xp

Nov 14, 2016 at 5:49 PM
Edited Nov 14, 2016 at 5:49 PM
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)
Coordinator
Nov 15, 2016 at 11:22 AM
This error has occurred in the past when the name of the task conflicts with the V1 engine. What is the name of your task?
Nov 15, 2016 at 12:04 PM
Edited Nov 15, 2016 at 2:28 PM
The name of the task is "Backups". I also tried with a different name but it didn´t work.

Edit: Never mind, I managed to find the issue. The app was checking if the task was already created. In Windows 7 the GetTask() function returned null if the task was not found but in Windows XP it throwed a FileNotFoundException instead.
Coordinator
Nov 17, 2016 at 4:54 AM
Thank you for finding that inconsistency. I will adjust it so that it behaves the same for both.
Coordinator
Nov 18, 2016 at 2:25 PM
It is now corrected and will appear in the next release.