Problem with creation of scheduled task from IIS6 on SR2003
Posted
by Morten Louw Nielsen
on Server Fault
See other posts from Server Fault
or by Morten Louw Nielsen
Published on 2010-04-06T21:09:10Z
Indexed on
2010/04/06
21:13 UTC
Read the original article
Hit count: 568
Hi,
I have also posted this question on stackoverflow, but will also try here, since it might be more system-related
I am writing a webapplication using .NET. The webapp creates scheduled tasks using the System.Diagnostics.Process class, calling SCHTASKS.EXE with parameters.
I have changed the identity on the app pool, to a specific domain user. The domain-user is local administrator on all the four webservers.
From webserver01 I am creating tasks on webserver01 to webserver04.
It works perfect for 3-5 days, but then it breaks. It gives me the following errormessage in a messagebox:
"The application failed to initialize properly (0xc0000142). Click on OK to terminate the application."
If I have the system in the broken state, and I change the identity of the app pool to Domain administrator, it works. As I change it back to my domain-user, it breaks again. If I reboot the server, it works again for the same amount of days, but will break again.
It seems like a permission-related problem. I just don't understand why it works sometimes, and sometimes doesn't.
I hope someone outthere has seen this problem!
Looking forward to hear from you!
Kind regards,
Morten, Denmark
© Server Fault or respective owner