3

I have many scheduled tasks on a Windows Server 2008 R2 box, running a few different programs with various command line options. Last night, they all started failing with the last run result of 0xE0434352, which is the exception code for all .NET exceptions.

The applications are .NET applications so ordinarily I would suspect a coding issue. However, running the jobs manually from the command line works fine, and I confirmed there have been no binary or job changes in weeks.

What's my next step to see what's going on?

  • attempt to change the 'Configure for:" OS' under your 'General' tab. – mj9001 Jan 26 '17 at 20:07
  • To what? It was already set to the most modern version supported. – dsolimano Jan 26 '17 at 20:51
2

The origin of the problem was I had one scheduled task that was set to kill itself after 24 hours and then restart. It was a PowerShell script that started another program, call it the logger. The logger wasn't killed when the scheduled task died, and over time a large number of loggers built up on the server, though they were no longer writing to their output.

While there was no issue with processor utilization or memory, as the loggers used very little memory and weren't using any processor, it seems the Task Scheduler was holding on to a reference to them, and after a threshold was passed, all of the scheduled tasks stopped running with the above error.

Killing the loggers allowed task scheduler to keep running, and fixing the job so that the loggers were shut down cleanly solved the problem long-term.

  • Are you using log4net? – Greg Askew Jun 30 '15 at 17:47
  • @GregAskew I'm not using log4net, it's a process that captures traffic on an internal message bus and writes some of it to files. – dsolimano Jun 30 '15 at 17:58
0

I had the same problem. In my case, the user that runs the task had no permission to access the folder of the .net application. Someone suddenly removed folder privileges to that domain user.

0

I got this when I changed my password in AD, but not for this scheduled task. Updating my password fixed it. Simply open the scheduled task and click the "Okay" button (no changes needed). It'll automatically prompt for credentials again. Still waiting on that service account from the network team (sigh)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.