Quantcast
Viewing all articles
Browse latest Browse all 2206

New Post: Help TaskDefinition.Data property

Found msdn requirements, which was the cause of my problem.

https://msdn.microsoft.com/en-us/library/windows/desktop/aa382552(v=vs.85).aspx

Requirements:
Minimum supported client - Windows Vista [desktop apps only]
Minimum supported server - Windows Server 2008 [desktop apps only]
Type library - Taskschd.tlb
DLL - Taskschd.dll


I changed the constuctor I used for TaskService to resolve the problem.

from:
using (TaskService ts = new TaskService(Environment.MachineName, null, null, null, true)) { ... }
to:
using (TaskService ts = new TaskService()) { ... }

Viewing all articles
Browse latest Browse all 2206

Trending Articles



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