title: Quartz .net job is not executing
body: <p>I've created an ASP.NET MVC website. Then I've created a class library named Site.Scheduler where I wanted to put all my triggers and jobs.</p>
  
  <p>I've created a simple job for testing purposes</p>
  
  <pre><code>public class CurrencyRatesJob : IJob
  {
      private readonly IBudgetsRepository budgetsRepository;
  
      public CurrencyRatesJob(IBudgetsRepository budgetsRepository)
      {
          this.budgetsRepository = budgetsRepository;
      }
  
      public void Execute(IJobExecutionContext context)
      {
          try
          {
              var budgets = new BudgetsDTO();
              var user = new UserDTO();
  
              budgets.Sum = 1;
              budgets.Name = "Quartz";
              user.Email = "email@g.com";
  
              budgetsRepository.InsertBudget(budgets, user);
          }
          catch (Exception ex)
          {
              throw new Quartz.JobExecutionException(ex);
          }
      }
  }
  </code></pre>
  
  <p>and a Job Scheduler</p>
  
  <pre><code>public class CurrencyRatesJobScheduler
  {
      public static void GetCurrencyRates()
      {
          try
          {
              IScheduler scheduler = StdSchedulerFactory.GetDefaultScheduler();
  
              IJobDetail job = JobBuilder.Create&lt;CurrencyRatesJob&gt;().Build();
  
              ITrigger trigger = TriggerBuilder.Create()
                  .StartNow()
                  .WithSimpleSchedule
                      (s =&gt;
                          s.WithIntervalInSeconds(10)
                          .RepeatForever()
                      )
                  .Build();
  
              scheduler.ScheduleJob(job, trigger);
          }
          catch (Exception ex)
          {
              ex.ToString();
          }
      }
  }
  </code></pre>
  
  <p>To start the scheduler when application starts, I've added the following in Global.asax.cs </p>
  
  <pre><code>CurrencyRatesJobScheduler.GetCurrencyRates();
  </code></pre>
  
  <p>So after all that, I was expecting the job to execute every 10 seconds and insert all that info in the DB, but it doesn't do anything and I get no errors either.</p>
  
  <p>Does anyone know what could be the issue? </p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>So I've created all the necessary tables (executed the script from Quartz.NET) and I've added a new App.config file in my class library</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;appSettings&gt;
      &lt;add key="quartz.scheduler.instanceName" value="MyQuartzScheduler" /&gt;
      &lt;add key="quartz.scheduler.instanceId" value="instance_one" /&gt;
      &lt;add key="quartz.threadPool.type" value="Quartz.Simpl.SimpleThreadPool, Quartz" /&gt;
      &lt;add key="quartz.threadPool.threadCount" value="10" /&gt;
      &lt;add key="quartz.threadPool.threadPriority" value="1" /&gt;
      &lt;add key="quartz.jobStore.type" value="Quartz.Impl.AdoJobStore.JobStoreTX, Quartz" /&gt;
      &lt;add key="quartz.jobStore.misfireThreshold" value="60000" /&gt;
      &lt;add key="quartz.jobStore.dataSource" value="default" /&gt;
      &lt;add key="quartz.jobStore.driverDelegateType" value="Quartz.Impl.AdoJobStore.SqlServerDelegate, Quartz" /&gt;
      &lt;add key="quartz.jobStore.lockHandler.type" value="Quartz.Impl.AdoJobStore.UpdateLockRowSemaphore, Quartz" /&gt;
      &lt;add key="quartz.jobStore.tablePrefix" value="QRTZ_" /&gt;
      &lt;add key="quartz.dataSource.default.connectionString" value="Server=(local);Database=My.Database;UID=User;PWD=Password" /&gt;
      &lt;add key="quartz.dataSource.default.provider" value="SqlServer-20" /&gt;
      &lt;add key="quartz.jobStore.useProperties" value="true" /&gt;
    &lt;/appSettings&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Still no luck. Besides that, no triggers or jobs were stored in the DB.</p>