title: Could not create the driver from NHibernate.Driver.NpgsqlDriver
body: <p>I've inherited a C#/NHibernate/MS SQL Server project and am new to NHibernate.  One of the first tasks given to me was to migrate the database from MS SQL Server (2008 R2) to Postgresql 9.2.  I'm using the Npgsql 2.0.12 (.net 2.0 version).  The Mono.Security.dll and Npgsql.dll are included in my project References and they exist in my bin directory.  When the code executes the following line:</p>
  
  <pre><code>SessionFactory.OpenSession();
  </code></pre>
  
  <p>an exception is thrown with the message </p>
  
  <p>"Could not create the driver from NHibernate.Driver.NpgsqlDriver."</p>
  
  <p>Searching the web, gave me a few ideas but none have worked.  This code I've inherited is in production at several clients with no issues using MS SQL Server.  Here is my hibernate.cfg.xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"&gt;
    &lt;session-factory&gt;
      &lt;property name="connection.provider"&gt;NHibernate.Connection.DriverConnectionProvider&lt;/property&gt;
      &lt;property name="dialect"&gt;NHibernate.Dialect.PostgreSQLDialect&lt;/property&gt;
      &lt;property name="connection.driver_class"&gt;NHibernate.Driver.NpgsqlDriver&lt;/property&gt;
      &lt;property name="connection.connection_string"&gt;server=localhost;Port=5432;Database=vehicletracker;User Id=postgres;Password=********;&lt;/property&gt;
    &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;
  </code></pre>
  
  <p>I did not forget to include "using Npgsql;", it is there.  Any suggestions?</p>
  
  <p>Regards,</p>
  
  <p>B</p>