title: No parameterless constructor defined for this object - Hangfire scheduler
body: <p>I've just installed Hangfire package in my MVC website.
  I've created a Startup class </p>
  
  <pre><code>[assembly: OwinStartup(typeof(Website.Startup))]
  
  namespace Website
  {
      public partial class Startup
      {
          public void Configuration(IAppBuilder app)
          {
              Hangfire.ConfigureHangfire(app);
              Hangfire.InitializeJobs();
          }
      }
  }
  </code></pre>
  
  <p>and a Hangfire class</p>
  
  <pre><code>public class Hangfire
  {
      public static void ConfigureHangfire(IAppBuilder app)
      {
          app.UseHangfire(config =&gt;
          {
              config.UseSqlServerStorage("DefaultConnection");
              config.UseServer();
              config.UseAuthorizationFilters(); 
          });
      }
  
      public static void InitializeJobs()
      {
          RecurringJob.AddOrUpdate&lt;CurrencyRatesJob&gt;(j =&gt; j.Execute(), "* * * * *");
      }
  }
  </code></pre>
  
  <p>Also, I've created a new job in a separate class library</p>
  
  <pre><code>public class CurrencyRatesJob
  {
      private readonly IBudgetsRepository budgetsRepository;
  
      public CurrencyRatesJob(IBudgetsRepository budgetsRepository)
      {
          this.budgetsRepository = budgetsRepository;
      }
  
      public void Execute()
      {
          try
          {
              var budgets = new BudgetsDTO();
              var user = new UserDTO();
  
              budgets.Sum = 1;
              budgets.Name = "Hangfire";
              user.Email = "email@g.com";
  
              budgetsRepository.InsertBudget(budgets, user);
          }
          catch (Exception ex)
          {
              var message = ex.ToString();
              throw new NotImplementedException(message);
          }
      }
  }
  </code></pre>
  
  <p>So when I run the application, in the Hangfire's dashboard I get the following error:</p>
  
  <pre><code>Failed An exception occurred during job activation.
  System.MissingMethodException
  
  No parameterless constructor defined for this object.
  
  System.MissingMethodException: No parameterless constructor defined for this object.
     at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean&amp; canBeCached, RuntimeMethodHandleInternal&amp; ctor, Boolean&amp; bNeedSecurityCheck)
     at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark&amp; stackMark)
     at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark&amp; stackMark)
     at System.Activator.CreateInstance(Type type, Boolean nonPublic)
     at System.Activator.CreateInstance(Type type)
     at Hangfire.JobActivator.ActivateJob(Type jobType)
     at Hangfire.Common.Job.Activate(JobActivator activator)
  </code></pre>
  
  <p>So, I'm a little lost here. What am I missing?</p>