title: Scheduling generic IJob<> with Quartz .NET and AdoJobStore
body: <p>I'm developing simple scheduler using Quartz .NET. I want to Quartz persists all of jobs and triggers in database, so I set AdoJobStore and <strong>with "normal" jobs it works ok.</strong></p>
  
  <p>Now, I have problem with deserializing from database generic Jobs. I have class:</p>
  
  <pre><code>class DefaultJob&lt;TEventType, TArgsType&gt; : IJob{
   public void Execute(IJobExecutionContext context)
   {
           //do sth
   }
  }
  </code></pre>
  
  <p>With RamJobStore and DefaultJob&lt;,> everyting is ok - scheduling and running work.  </p>
  
  <p>With AdoJobStore and DefaultJob&lt;,> I can schedule, Quartz saves it to database (I can see it via Management Studio), but when it tries to restore it from database, I'm getting:  </p>
  
  <pre><code>A first chance exception of type 'System.ArgumentException' occurred in mscorlib.dll
  A first chance exception of type 'Quartz.JobPersistenceException' occurred in Quartz.dll
  A first chance exception of type 'Quartz.JobPersistenceException' occurred in Quartz.dll
  </code></pre>
  
  <p>I debuged JobFactory, method NewJob isn't invoked at all. Something wrong happens before it.</p>
  
  <p>Anybody could help?</p>