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

141 строка
6.2 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=BANLkTin2uu%3DxYPDYKG74nnO9Ey%2BrzpgH1g%40mail.gmail.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="004354.html">
<LINK REL="Next" HREF="004357.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-osx] Npgsql on Mono 2.10.2 OSX snow leopard 10.6.7</H1>
<B>Francisco Figueiredo Jr.</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=BANLkTin2uu%3DxYPDYKG74nnO9Ey%2BrzpgH1g%40mail.gmail.com"
TITLE="[Mono-osx] Npgsql on Mono 2.10.2 OSX snow leopard 10.6.7">francisco at npgsql.org
</A><BR>
<I>Tue May 31 11:00:54 EDT 2011</I>
<P><UL>
<LI>Previous message: <A HREF="004354.html">[Mono-osx] Npgsql on Mono 2.10.2 OSX snow leopard 10.6.7
</A></li>
<LI>Next message: <A HREF="004357.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#4355">[ date ]</a>
<a href="thread.html#4355">[ thread ]</a>
<a href="subject.html#4355">[ subject ]</a>
<a href="author.html#4355">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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, &quot;Alfred Hall&quot; &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">ahall at ahall.org</A>&gt; escreveu:
&gt;<i> To add some more information,
</I>&gt;<i>
</I>&gt;<i> Tried using npgsql that ships with mono and also the latest one from
</I>&gt;<i> npgsql website.
</I>&gt;<i>
</I>&gt;<i> The code worked fine in 2.10.1 but started throwing an exception on 2.10.2
</I>&gt;<i>
</I>&gt;<i> Some sample code to demonstrate the issue:
</I>&gt;<i>
</I>&gt;<i> $ /Library/Frameworks/Mono.framework/Versions/2.10.1/bin/csharp -r Npgsql
</I>&gt;<i> warning CS8029: Compatibility: Use -r:LIBRARY instead of -r library
</I>&gt;<i> Mono C# Shell, type &quot;help;&quot; for help
</I>&gt;<i>
</I>&gt;<i> Enter statements below.
</I>&gt;<i> csharp&gt; using Npgsql;
</I>&gt;<i> csharp&gt; NpgsqlConnection conn = new
</I>&gt;<i> NpgsqlConnection(&quot;Server=127.0.0.1;Port=5432;User
</I>&gt;<i> Id=myuser;Password=mypassword;Database=mydb;&quot;);
</I>&gt;<i> csharp&gt; conn.Open();
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> And with 2.10.2:
</I>&gt;<i> $ /Library/Frameworks/Mono.framework/Versions/2.10.2/bin/csharp -r Npgsql
</I>&gt;<i> warning CS8029: Compatibility: Use -r:LIBRARY instead of -r library
</I>&gt;<i> Mono C# Shell, type &quot;help;&quot; for help
</I>&gt;<i>
</I>&gt;<i> Enter statements below.
</I>&gt;<i> csharp&gt; using Npgsql;
</I>&gt;<i> csharp&gt; NpgsqlConnection conn = new
</I>&gt;<i> NpgsqlConnection(&quot;Server=127.0.0.1;Port=5432;User
</I>&gt;<i> Id=myuser;Password=mypassword;Database=mydb;&quot;);
</I>&gt;<i> csharp&gt; conn.Open();
</I>&gt;<i> Npgsql.NpgsqlException:
</I>&gt;<i> Connection establishment timeout. Increase Timeout value in
</I>ConnectionString.
&gt;<i> at Npgsql.NpgsqlClosedState.Open (Npgsql.NpgsqlConnector context)
</I>&gt;<i> [0x00000] in &lt;filename unknown&gt;:0
</I>&gt;<i> at Npgsql.NpgsqlConnector.Open () [0x00000] in &lt;filename unknown&gt;:0
</I>&gt;<i> at Npgsql.NpgsqlConnectorPool.GetPooledConnector
</I>&gt;<i> (Npgsql.NpgsqlConnection Connection) [0x00000] in &lt;filename unknown&gt;:0
</I>&gt;<i> csharp&gt;
</I>&gt;<i>
</I>&gt;<i> 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:
</I>&gt;&gt;<i> Hey,
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Referring to an email earlier on the forum from Francisco Figueiredo
</I>&gt;&gt;<i> Jr. francisco at npgsql.org on Tue Apr 26 00:22:50 EDT 2011:
</I>&gt;&gt;<i> Hi!
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> -- Francisco mail Starts here --
</I>&gt;&gt;<i> I just installed this version here and now when testing Npgsql, I'm
</I>&gt;&gt;<i> getting an exception saying that it can't connect to 127.0.0.1 :(
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> The same goes to localhost.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> I think there is something wrong with tcp stack.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> I'm using osx 10.6.6 Intel
</I>&gt;&gt;<i> -- Francisco mail ends Ends --
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> ----
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> I'm having the same issue and was wondering if this has been fixed in
</I>&gt;&gt;<i> the upcoming 2.12.x release. Just want to make sure my team can
</I>&gt;&gt;<i> upgrade to 2.12.x when it becomes available. Wasn't sure where to file
</I>&gt;&gt;<i> a bug on this as I'm unsure
</I>&gt;&gt;<i> as to whether bugzilla.novell.com is still being looked at.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Cheers,
</I>&gt;&gt;<i> Al
</I>&gt;&gt;<i>
</I>-------------- next part --------------
An HTML attachment was scrubbed...
URL: <A HREF="http://lists.ximian.com/pipermail/mono-osx/attachments/20110531/e8df2539/attachment.html">http://lists.ximian.com/pipermail/mono-osx/attachments/20110531/e8df2539/attachment.html</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="004354.html">[Mono-osx] Npgsql on Mono 2.10.2 OSX snow leopard 10.6.7
</A></li>
<LI>Next message: <A HREF="004357.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#4355">[ date ]</a>
<a href="thread.html#4355">[ thread ]</a>
<a href="subject.html#4355">[ subject ]</a>
<a href="author.html#4355">[ 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>