Last post May 17, 2017 11:32 AM by tec-net
Nov 16, 2015 04:47 AM|Mokhtar nebli|LINK
I used Quartz.net scheduler in a ASP MVC application that send mail once a day. This scheduler fire only on debugging my app. When I publish this application on IIS the scheduler doesn't fire.
public class MvcApplication : System.Web.HttpApplication
protected void Application_Start()
public class JobScheduler
public static void Start()
IScheduler Scheduler = StdSchedulerFactory.GetDefaultScheduler();
IJobDetail job = JobBuilder.Create<EmailJob>().Build();
ITrigger trigger = TriggerBuilder.Create()
public class EmailJob : IJob
public void Execute(IJobExecutionContext context)
//instructions for sending mails
Nov 05, 2016 11:55 PM|Nasser Malik|LINK
Seem like no issue with you code. Actually i think there is not much traffic on your site and application pool get recycled. Due to this your job is behaving correctly.
Better you move your scheduler thing into Windows Service or keep alive you site for ever. You can keep alive your site forever by calling your application from windows service after a small interval or you can do settings on application pool to avoid that
See following to keep alive your site
May 17, 2017 11:32 AM|tec-net|LINK
Currently im working with quartz 2.5 and and deploying in iis 7.5 on WS2008 R2, i have the same problem, and the trigger never is executed. When i run in local it works very well,
Any ideas for May 2017?