I have now reproduced the situation on two servers. Also I have made the test setup less error pron. The console now writes to the Event Log instead of the file system.
Important! First run the ConsoleApplication1.exe as Administrator on the machine to create Event Log Source.
1. Create Job. Add Task. Check "Run in Hidden Window". Add user credentials from the domain. Task Type : Execute
2. Restart the server.
3. Start Job. Eventlog contains error message
4. Uncheck "Run in Hidden Window".
5. Start Job. Eventlog contains expected message.
Error messageFaulting application ConsoleApplication1.exe, version 1.0.0.0, time stamp 0x4cecda76, faulting module KERNEL32.dll, version 6.0.6001.18000, time stamp 0x4791a783, exception code 0xc0000142, fault offset 0x0006ecfb, process id 0xf90, application start time 0x01cb8bbe16fbdd94.
Edited by user
2010-11-24T11:08:30Z
|
Reason: Not specified