New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the Community Exchange, where community members ask and answer questions about DNN. To get started, just start typing your question below and either select one of the suggested questions or ask a new question of your own.

Scheduled task not executing

Return to previous page

  • 10/9/2013
  • 1683 Views

Question:

Andrew Balla long time ago
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




Scheduled task not executing

Andrew Balla
Andrew Balla long time ago
Add an Answer

Answers

Sign In to Participate
Or register to become a member