I used TaskScheduler.dll
(1.0) to create and register a task.
It registers the task and runs on my machine. But when i deployed the
executable to a diff machine it threw and exception -The data area passed to a system call is too small. (Exception from HRESULT: 0x8007007A
).
What i could figure out was that the user information was failed to pass to the API but not sure why.
That error is due to a limitation in the OS (depends on Windows version used!) for tasks with user credentials... basically you need to stop the task scheduler service and start it again, wait 10-15 minutes and then try again...
For details see this MS KB article.
User contributions licensed under CC BY-SA 3.0