[Mono-osx] Npgsql on Mono 2.10.2 OSX snow leopard 10.6.7

Alfred Hall ahall at ahall.org
Tue May 31 10:57:35 EDT 2011


To add some more information,

Tried using npgsql that ships with mono and also the latest one from
npgsql website.

The code worked fine in 2.10.1 but started throwing an exception on 2.10.2

Some sample code to demonstrate the issue:

$ /Library/Frameworks/Mono.framework/Versions/2.10.1/bin/csharp -r Npgsql
warning CS8029: Compatibility: Use -r:LIBRARY instead of -r library
Mono C# Shell, type "help;" for help

Enter statements below.
csharp> using Npgsql;
csharp> NpgsqlConnection conn = new
NpgsqlConnection("Server=127.0.0.1;Port=5432;User
Id=myuser;Password=mypassword;Database=mydb;");
csharp> conn.Open();


And with 2.10.2:
$ /Library/Frameworks/Mono.framework/Versions/2.10.2/bin/csharp -r Npgsql
warning CS8029: Compatibility: Use -r:LIBRARY instead of -r library
Mono C# Shell, type "help;" for help

Enter statements below.
csharp> using Npgsql;
csharp> NpgsqlConnection conn = new
NpgsqlConnection("Server=127.0.0.1;Port=5432;User
Id=myuser;Password=mypassword;Database=mydb;");
csharp> conn.Open();
Npgsql.NpgsqlException:
Connection establishment timeout. Increase Timeout value in ConnectionString.
  at Npgsql.NpgsqlClosedState.Open (Npgsql.NpgsqlConnector context)
[0x00000] in <filename unknown>:0
  at Npgsql.NpgsqlConnector.Open () [0x00000] in <filename unknown>:0
  at Npgsql.NpgsqlConnectorPool.GetPooledConnector
(Npgsql.NpgsqlConnection Connection) [0x00000] in <filename unknown>:0
csharp>

On Tue, May 31, 2011 at 3:46 PM, Alfred Hall <ahall at ahall.org> wrote:
> Hey,
>
> Referring to an email earlier on the forum from Francisco Figueiredo
> Jr. francisco at npgsql.org  on Tue Apr 26 00:22:50 EDT 2011:
> Hi!
>
> -- Francisco mail Starts here --
> I just installed this version here and now when testing Npgsql, I'm
> getting an exception saying that it can't connect to 127.0.0.1 :(
>
> The same goes to localhost.
>
> I think there is something wrong with tcp stack.
>
> I'm using osx 10.6.6 Intel
> -- Francisco mail ends Ends --
>
>
> ----
>
> I'm having the same issue and was wondering if this has been fixed in
> the upcoming 2.12.x release. Just want to make sure my team can
> upgrade to 2.12.x when it becomes available. Wasn't sure where to file
> a bug on this as I'm unsure
> as to whether bugzilla.novell.com is still being looked at.
>
> Cheers,
> Al
>


More information about the Mono-osx mailing list