Hi,
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