Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My C# application is returning 0xE0434352 to Windows Task Scheduler but it is not crashing

I have written a few C# apps that I have running via windows task scheduler. They are running successfully (as I can see from the log files that they are writing ) but windows task scheduler shows them returning a last run result of 0xE0434352. Is there something I need to do in my C# application so that it returns a success code to the windows task scheduler?

like image 692
Kynrek Avatar asked Feb 05 '13 16:02

Kynrek


2 Answers

Another option is to simply use the Application log accessible via the Windows Event Viewer. The .Net error will be recorded to the Application log.

You can see these events here:

Event Viewer (Local) > Windows Logs > Application

like image 103
voidmain Avatar answered Sep 30 '22 07:09

voidmain


When setup a job in new windows you have two fields "program/script" and "Start in(Optional)". Put program name in first and program location in second. If you will not do that and your program start not in directory with exe, it will not find files that are located in it.

like image 33
Dmitry Bosikov Avatar answered Sep 30 '22 06:09

Dmitry Bosikov