I have an EXE that I created using Visual Studio Professional 2010. When I run it manually it runs fine but when it runs in Scheduled Tasks it will run for a while but eventually fails with error code 0XE0434F4D. I know that it runs for some time because it does produce the expected output file, however the file is incomplete.
The file runs fine on a Windows Server 2003 system (this is where it was originally created).
The problem is happening on a Windows Server 2008 SP1 machine. The process queries the SQL server backend of the WSUS server that's installed on the same machine (local).
I've ensured that all dirs and files involved have full authority for the ID that's running the task.
Any ideas what could be causing it to run for a while and then fail?