Quantcast
Channel: Question and Answer » postgresql
Viewing all articles
Browse latest Browse all 1138

How connect C# to Postgresql in host j.layershift.co.uk

$
0
0

I have installed postgresql database in http://postgres-project-1241043.j.layershift.co.uk/ host.

I want to connect to the database using C#. I use Npgsql with following connection string.

connectionString = @ "Server = postgres-project-1241043.j.layershift.co.uk, Port = 5432, User Id = postgre; Password = abcdef; Database = dbluanvantn;";

But I am not able to connect to the server and get error:

Npgsql.NpgsqlException: Failed to a connection to 'postgres-project1241043.j.layershift.co.uk'.

Am I using correct connection string?. Help me fix it.


Viewing all articles
Browse latest Browse all 1138

Trending Articles