MissingMethodException ConnectionString
Posted: Fri 03 Feb 2012 12:51
I've developeed a simple aplication using dotConnect for PostgreSQL 5.70 Mobile Trial with Visual Studio 2005 but I've a problem.
My code is the next:
string sbconn = "host=172.30.32.107;database=babylon;user id=openerp;Password=postgres;";
PgSqlConnection conector = new PgSqlConnection();
conector.ConnectionString = sbconn;
conector.Open();
I have also tried:
PgSqlConnection conector = new PgSqlConnection();
conector.UserId = "openerp";
conector.Password = "postgres";
conector.Host = "172.30.32.107";
conector.Port = int.Parse("5432");
conector.Database = "babylon";
conector.Open();
In both cases the error is the same: MissingMethodException. What could be the problem?
Regards!!
My code is the next:
string sbconn = "host=172.30.32.107;database=babylon;user id=openerp;Password=postgres;";
PgSqlConnection conector = new PgSqlConnection();
conector.ConnectionString = sbconn;
conector.Open();
I have also tried:
PgSqlConnection conector = new PgSqlConnection();
conector.UserId = "openerp";
conector.Password = "postgres";
conector.Host = "172.30.32.107";
conector.Port = int.Parse("5432");
conector.Database = "babylon";
conector.Open();
In both cases the error is the same: MissingMethodException. What could be the problem?
Regards!!