JarHead Posted December 15, 2004 Posted December 15, 2004 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? Quote
Administrators PlausiblyDamp Posted December 15, 2004 Administrators Posted December 15, 2004 any chance you could post a bit of the code you are using? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
JarHead Posted December 15, 2004 Author Posted December 15, 2004 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(); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.