i have a problem with using cron trigger in Quartz.net. My code:
var trigger = new CronTrigger("0/30 * * * * ?");
trigger.Name = "some name";
trigger.Group = "group";
scheduler.ScheduleJob(jobDetails, trigger);
it should run every 30 seconds, but on last line following exception occures:
“Based on configured schedule, the given trigger will never fire.”
can anyone help?
The first parameters to create a CronTrigger is never a cron expression but the trigger name.
Instead you can use this overload:
UPDATE:
You can configure a logger which is used by Quartz.net to trap some internal error.
I used NLog and it has helped me a lot to debug common mistakes.