1

How can i set the task to restart automatically when an unhandled exception occurs? I have tried the setting "If the task fails, retart every:" but it doesnt restart the task.

  • Please show your code that is relevant to the problem – Yacoub Massad Jan 14 '16 at 18:42
  • Lets just say that my application just throws an exception without a catch simulating an unhandled exception. – destroyerlp Jan 14 '16 at 18:57
  • just to be clear, are you referring to the .NET type `System.Threading.Tasks.Task`? – sara Jan 15 '16 at 09:58
  • I suppose the question is about restarting an application (*.exe file) that was started by Windows Task Scheduler and finished because of uncaught exception. Have you found the solution? – ps_ttf Nov 23 '16 at 10:14
  • I suppose the following answer could help: http://stackoverflow.com/questions/1335551/how-does-windows-task-scheduler-in-win7-recognize-a-failed-task#answer-10282877 – ps_ttf Nov 23 '16 at 10:35

0 Answers0