简体   繁体   中英

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

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM