I have two servers, a 2003 R2 and a 2008 R2, setup to run the same executable as a task as I work on migrating content over to the new server. The task started failing recently and the task scheduler is just giving a message of "Task stopping due to timeout reached" and "The last run of the task was terminated by the user". Not helpful.
If I manually run the task on the 2003 server, it throws up a Microsoft .NET Framework error message with a detailed explanation of exactly what's wrong. The detailed message includes the exception, the process chain, a list of loaded assemblies, and instructions on how to enable just-in-time (JIT) debugging, but the summary of the error and what I primarily need.
Violation of PRIMARY KEY constraint 'PK_UserId'. Cannot insert duplicate key in object 'dbo.Removed'. The statement has been terminated.
If I manually run the task on the 2008 server, it isn't giving me anything more than the automated execution gave.
What do I need to do to get the .NET Framework error (or anything comparable) to show up?