title: DbProviderFactory with Npgsql?
body: <p>I have a project which I'm trying to port from SQL Server to PostgreSQL. I've got almost everything done I believe except for I can not get <code>DbProviderFactory</code> to work with Npgsql. </p>
  
  <pre><code>Factory = DbProviderFactories.GetFactory("Npgsql");
  </code></pre>
  
  <p>yields</p>
  
  <blockquote>
    <p>Unhandled Exception:
    System.Configuration.ConfigurationErrorsException:
    Failed to find or load the registered
    .Net Framework Data Provider.</p>
  </blockquote>
  
  <p>How do I fix this? </p>