Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am attempting to connect to a PostgreSQL database via C# or VB.net using the Npgsql .Net data provider, but I get the following error when I attempt to open the connection:

 

An unhandled exception of type 'System.IO.IOException' occurred in npgsql.dll

 

Additional information: Unable to read data from the transport connection.

 

Any ideas?

Posted
any chance you could post a bit of the code you are using?

 

using System.Data;

using Npgsql;

 

Npgsql.NpgsqlConnection objConn = new Npgsql.NpgsqlConnection("Server=TestServer;Port=5432;User ID=Test_User;Password=Test_Password;Database=TESTDB;");

objConn.Open();

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...