Code: Select all
PgSqlConnection conn = new PgSqlConnection();
conn.Host = "localhost";
conn.UserId = "postgres";
conn.Password = "postgres";
conn.Database = "x";
conn.Open();
I am getting an error: "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host." instead of "database "x" does not exist". Any ideea how to fix it?
Ps. In PgAdmin, server status I am receiving: database "x" does not exist
Using. VS. 2010, C#, Windows 7 x64, the project is set to x86, 5.80.332.0