Task Schedular can't start a compiled exe file

bghanim

Active member
Joined
Dec 5, 2006
Messages
40
Location
Abu Dhabi - UAE
Programming Experience
1-3
Hello all,
I've developed a Console Application that retrieves the list of unread messages for downloading their attachments into the file system.. it works fine when the exe is double clicked.

This application needed to run every day, so I created a scheduled task, but when it runs it gives the following error (From the event viewer):

The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: .NET Runtime version 1.1.4322.2407- attachmentsExtractor.exe - Common Language Runtime Debugging Services: Application has generated an exception that could not be handled.

Process id=0xc84 (3204), Thread id=0x22d8 (8920).

Click OK to terminate the application.
Click CANCEL to debug the application..



P.S.: 1- when the task is selected by the mouse pointer, it gives the last result equals to 0xe0434f4d.
2- The task is running under an administator account.



Any help will be highly appreciated...

Regards,
Baha A. Ghanim
 
Check the task settings and make sure "Start in" path is correct.
 
Back
Top