While using the taskService.GetFolder method i receive an exception saying FileNotFoundException: 'The system cannot find the file specified. (Exception from HRESULT: 0x80070002)'
After checking i found that the folder that i was trying to get was deleted from the WindowsTaskScheduler
and the folder "My Tasks" got deleted from the Windows Task Scheduler.
I wanted to know that how can we check if the folder in which our tasks are stored exists or not so that i can check it before hand.