task created through TaskScheduler.dll failed through exception - The data area passed to a system call is too small

0

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.

c#
scheduled-tasks
asked on Stack Overflow Dec 14, 2012 by user1904866 • edited Dec 14, 2012 by senia

1 Answer

0

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.

answered on Stack Overflow Dec 14, 2012 by Yahia

User contributions licensed under CC BY-SA 3.0