This project has moved. For the latest updates, please go here.

Monthly schedule problem

Feb 2, 2010 at 3:12 PM

Whenever we create a monthly schedule which is scheduled to run in January and the schedule day selected is earlier than the current date then the "Next Run Time"  that is returned is invalid.

For example if we create a task which runs on day 2 of January and my current system date is say 10 January then the Next Run Time returned is invalid.

Moreover if we just refresh the "Windows Task Scheduler" the "Next Run Time" of such a task keeps on changing and gets incremented on every refresh.  This problem occurs on both Windows Vista and Windows 7.

Please help me to get a solution for this problem.

Feb 2, 2010 at 9:18 PM

After some testing, it appears that this is a problem with the native library and not this wrapper. Your only recourse is to go to Microsoft Support. However, I was able to determine that the DateTime returned is always in the past so you could check to see if the NextRunTime property returns something earlier than DateTime.Now and you will know you have a problem. If you get an answer from MS, please post it here for others.