Problem with creation of scheduled task from IIS6 on SR2003

0

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

windows-server-2003
iis-6
.net
scheduled-task
application-pools
asked on Server Fault Apr 6, 2010 by (unknown user)

1 Answer

0

A good starting point, is to look at the scheduled task log file as it will give you a more verbose log. http://support.microsoft.com/kb/308558

answered on Server Fault Apr 6, 2010 by commandbreak

User contributions licensed under CC BY-SA 3.0