mail-archives/mono-osx/2011-May/004354.html

132 строки
5.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-osx] Npgsql on Mono 2.10.2 OSX snow leopard 10.6.7
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20Npgsql%20on%20Mono%202.10.2%20OSX%20snow%20leopard%2010.6.7&In-Reply-To=BANLkTin-yRjdCvh12Qsgvrh33fog8n0u7w%40mail.gmail.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="004353.html">
<LINK REL="Next" HREF="004355.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-osx] Npgsql on Mono 2.10.2 OSX snow leopard 10.6.7</H1>
<B>Alfred Hall</B>
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20Npgsql%20on%20Mono%202.10.2%20OSX%20snow%20leopard%2010.6.7&In-Reply-To=BANLkTin-yRjdCvh12Qsgvrh33fog8n0u7w%40mail.gmail.com"
TITLE="[Mono-osx] Npgsql on Mono 2.10.2 OSX snow leopard 10.6.7">ahall at ahall.org
</A><BR>
<I>Tue May 31 10:57:35 EDT 2011</I>
<P><UL>
<LI>Previous message: <A HREF="004353.html">[Mono-osx] Npgsql on Mono 2.10.2 OSX snow leopard 10.6.7
</A></li>
<LI>Next message: <A HREF="004355.html">[Mono-osx] Npgsql on Mono 2.10.2 OSX snow leopard 10.6.7
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4354">[ date ]</a>
<a href="thread.html#4354">[ thread ]</a>
<a href="subject.html#4354">[ subject ]</a>
<a href="author.html#4354">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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 &quot;help;&quot; for help
Enter statements below.
csharp&gt; using Npgsql;
csharp&gt; NpgsqlConnection conn = new
NpgsqlConnection(&quot;Server=127.0.0.1;Port=5432;User
Id=myuser;Password=mypassword;Database=mydb;&quot;);
csharp&gt; 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 &quot;help;&quot; for help
Enter statements below.
csharp&gt; using Npgsql;
csharp&gt; NpgsqlConnection conn = new
NpgsqlConnection(&quot;Server=127.0.0.1;Port=5432;User
Id=myuser;Password=mypassword;Database=mydb;&quot;);
csharp&gt; conn.Open();
Npgsql.NpgsqlException:
Connection establishment timeout. Increase Timeout value in ConnectionString.
at Npgsql.NpgsqlClosedState.Open (Npgsql.NpgsqlConnector context)
[0x00000] in &lt;filename unknown&gt;:0
at Npgsql.NpgsqlConnector.Open () [0x00000] in &lt;filename unknown&gt;:0
at Npgsql.NpgsqlConnectorPool.GetPooledConnector
(Npgsql.NpgsqlConnection Connection) [0x00000] in &lt;filename unknown&gt;:0
csharp&gt;
On Tue, May 31, 2011 at 3:46 PM, Alfred Hall &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">ahall at ahall.org</A>&gt; wrote:
&gt;<i> Hey,
</I>&gt;<i>
</I>&gt;<i> Referring to an email earlier on the forum from Francisco Figueiredo
</I>&gt;<i> Jr. francisco at npgsql.org &#160;on Tue Apr 26 00:22:50 EDT 2011:
</I>&gt;<i> Hi!
</I>&gt;<i>
</I>&gt;<i> -- Francisco mail Starts here --
</I>&gt;<i> I just installed this version here and now when testing Npgsql, I'm
</I>&gt;<i> getting an exception saying that it can't connect to 127.0.0.1 :(
</I>&gt;<i>
</I>&gt;<i> The same goes to localhost.
</I>&gt;<i>
</I>&gt;<i> I think there is something wrong with tcp stack.
</I>&gt;<i>
</I>&gt;<i> I'm using osx 10.6.6 Intel
</I>&gt;<i> -- Francisco mail ends Ends --
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> ----
</I>&gt;<i>
</I>&gt;<i> I'm having the same issue and was wondering if this has been fixed in
</I>&gt;<i> the upcoming 2.12.x release. Just want to make sure my team can
</I>&gt;<i> upgrade to 2.12.x when it becomes available. Wasn't sure where to file
</I>&gt;<i> a bug on this as I'm unsure
</I>&gt;<i> as to whether bugzilla.novell.com is still being looked at.
</I>&gt;<i>
</I>&gt;<i> Cheers,
</I>&gt;<i> Al
</I>&gt;<i>
</I></PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="004353.html">[Mono-osx] Npgsql on Mono 2.10.2 OSX snow leopard 10.6.7
</A></li>
<LI>Next message: <A HREF="004355.html">[Mono-osx] Npgsql on Mono 2.10.2 OSX snow leopard 10.6.7
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4354">[ date ]</a>
<a href="thread.html#4354">[ thread ]</a>
<a href="subject.html#4354">[ subject ]</a>
<a href="author.html#4354">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-osx">More information about the Mono-osx
mailing list</a><br>
</body></html>