Your question has been submitted and is awaiting moderation.
Thank you for reporting this content, moderators have been notified of your submission.
Hi,
I am trying to write a program and run it as a scheduled task. However, the task is not triggering.
When I first create the scheduled task in Host > Scheduler > Add Item to Schedule, it shows that it triggered in the Schedule Status window, however, the program is not executed.
As per documentation, I am creating a new class, and inheriting from the SchedulerClient base class. Then I am overriding the DoWork() method.
namespace FTPScheduledJob
{
public class DS_FTPScheduledJob : SchedulerClient
{
public DS_FTPScheduledJob(ScheduleHistoryItem OItem)
: base()
{
this.ScheduleHistoryItem = OItem;
}
public override void DoWork()
{
this.Progressing();
//doing work here
}
}
}
And then I build this project, and drop the dll in my DNN site's bin folder. The name of the dll is DSDealerFTPUpload
Then I create a new scheduled task on the DNN admin side, and I am tying FTPScheduledJob.DS_FTPScheduledJob, DSDealerFTPUpload in the "Class name and assembly" field, and setting all my other options.
Theoretically, this should work, but I am completely stumped as the scheduled job is not triggering. Maybe something is wrong with the way I am calling the classname and assembly.
Any help would be greatly appreciated.
Thanks