Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

Edited Issue: RegisterChanges() fails on XP [12208]

$
0
0
In V1 mode, the RegisterChanges fails saying the following:

```
Microsoft.Win32.TaskScheduler.NotV1SupportedException: Folder other than the root (\) was requested on a system only supporting Task Scheduler 1.0.
à Microsoft.Win32.TaskScheduler.TaskService.GetFolder(String folderName)
à Microsoft.Win32.TaskScheduler.Task.RegisterChanges()

```

The task was created using the RootFolder property.

As a workaround I had to write this:
```
task.Folder.RegisterTaskDefinition(task.Name, task.Definition);

```

However a fix would be better :)
Comments: ** Comment from web user: dahall **

Before your call to RegisterChanges, what is the string value of task.Path? This will help me determine if I missed a condition on the path before assuming it wasn't the root folder.


Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>