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

Commented Unassigned: Error creating TaskDefinition on Window10 Home [12187]

$
0
0
When I try to create the TaskDefinition and see the XMlText of a System Task(SQM data sender)
'tk.Definition.XmlText' threw an exception of type __'System.OutOfMemoryException'__ exception.

exception base: "Insufficient memory to continue the execution of the program"

StackTrace:
at Microsoft.Win32.TaskScheduler.V2Interop.ITaskDefinition.get_XmlText()
at Microsoft.Win32.TaskScheduler.TaskDefinition.get_XmlText()

Code:
// Get the service on the local machine
TaskService ts = new TaskService(targetServer, userName, accountDomain, password);

__Note:__ The wrapper successfully created the Task Definitions of some 70 odd system tasks before failing at this one.
TaskName: SQM data sender

I am using the latest version of the wrapper.

Thanks in advance
Any help will be appreciated
Comments: ** Comment from web user: dahall **

This error is thrown by the base Microsoft library. I can try to help, but I may not be able to do anything. If you will send the code used to create the task definition, I may be able to spot the items that could be causing the problem.


Viewing all articles
Browse latest Browse all 2206

Trending Articles



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