title: The type initializer for 'Npgsql.PoolManager' threw an exception
body: <p>Getting this exception "The type initializer for 'Npgsql.PoolManager' threw an exception." only on window 7. </p>
  
  <pre><code>public string ValidateDefaultInstancePostgreSqlServer()
      {
          string found = "0";
  
          try
          {
              using (NpgsqlConnection postGresConnection = new NpgsqlConnection())
              {
                  postGresConnection.ConnectionString = "Server=localhost;Port=5432;Database=postgres;User Id=postgres;Password=postgre123;Pooling=true;MinPoolSize=1;MaxPoolSize=100;Command Timeout=600;Timeout=600;";
                  using (NpgsqlCommand checkDBCommand = postGresConnection.CreateCommand())
                  {
                      postGresConnection.Open();
  
                      found = "1";
                  }
              }
          }
          catch (Exception e)
          {}
  </code></pre>
  
  <p>Note : the same code works fine on window 10.
  Running this function from a installsheild setup. Please help.</p>