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

Christopher Thielen cthielen at gmail.com
Tue May 31 13:51:43 EDT 2011


I can confirm this problem as well - I was getting quite annoyed by it and confirmed with the developers of the MySQL .NET connector that it was not a bug in their code, and it does indeed only exist on OS X.

In the meantime, I have been using 2.10.1.

On May 31, 2011, at 8:00 AM, Francisco Figueiredo Jr. wrote:

> I'd like to include I noticed that this problem was also present with SQL server .net provider too.
> 
> I remember that I saw a similar complaint in the mono mail list. 
> Em 31/05/2011 11:57, "Alfred Hall" <ahall at ahall.org> escreveu:
> > 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
> >>
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110531/6fff84b1/attachment.html 


More information about the Mono-osx mailing list