title: Could not create the driver from NHibernate.Driver.SQLite20Driver
body: <p>Here's the code that raises the exception</p>
  
  <pre><code>   public Configuration GetConfiguration()
      {
          var persister = SQLiteConfiguration
              .Standard
              .UsingFile("Test.db")
              .ShowSql();
  
  
          var configuration = Fluently
              .Configure()
              .Database(persister)
              .Mappings(map =&gt; map.FluentMappings.AddFromAssemblyOf&lt;WordMap&gt;())
              .BuildConfiguration();
  
          new SchemaExport(configuration).Execute(true, true, false);
  
          return configuration;
  
      }
  </code></pre>
  
  <p>The full exception text:  </p>
  
  <blockquote>
    <p>Failure: NHibernate.HibernateException : Could not create the driver
    from NHibernate.Driver.SQLite20Driver, NHibernate, Version=2.1.2.4000,
    Culture=neutral, PublicKeyToken=aa95f207798dfdb4.</p>
    
    <p>----> System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.</p>
    
    <p>----> NHibernate.HibernateException : The IDbCommand and IDbConnection implementation in the assembly System.Data.SQLite could
    not be found. Ensure that the assembly System.Data.SQLite is located
    in the application directory or in the Global Assembly Cache. If the
    assembly is in the GAC, use  element in the
    application configuration file to specify the full name of the
    assembly.</p>
  </blockquote>
  
  <p>Version of NHibernate is 2.1.2.4000<br>
  Version of System.Data.SQLite is 1.0.66.0<br>
  Target Framework is 3.5 (x86)<br>
  Local copy for System.Data.SQLite is ON.</p>
  
  <p>What may be wrong?</p>