зеркало из https://github.com/mono/mail-archives.git
132 строки
5.0 KiB
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 "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 <<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">ahall at ahall.org</A>> wrote:
|
|
><i> Hey,
|
|
</I>><i>
|
|
</I>><i> Referring to an email earlier on the forum from Francisco Figueiredo
|
|
</I>><i> Jr. francisco at npgsql.org  on Tue Apr 26 00:22:50 EDT 2011:
|
|
</I>><i> Hi!
|
|
</I>><i>
|
|
</I>><i> -- Francisco mail Starts here --
|
|
</I>><i> I just installed this version here and now when testing Npgsql, I'm
|
|
</I>><i> getting an exception saying that it can't connect to 127.0.0.1 :(
|
|
</I>><i>
|
|
</I>><i> The same goes to localhost.
|
|
</I>><i>
|
|
</I>><i> I think there is something wrong with tcp stack.
|
|
</I>><i>
|
|
</I>><i> I'm using osx 10.6.6 Intel
|
|
</I>><i> -- Francisco mail ends Ends --
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>><i> ----
|
|
</I>><i>
|
|
</I>><i> I'm having the same issue and was wondering if this has been fixed in
|
|
</I>><i> the upcoming 2.12.x release. Just want to make sure my team can
|
|
</I>><i> upgrade to 2.12.x when it becomes available. Wasn't sure where to file
|
|
</I>><i> a bug on this as I'm unsure
|
|
</I>><i> as to whether bugzilla.novell.com is still being looked at.
|
|
</I>><i>
|
|
</I>><i> Cheers,
|
|
</I>><i> Al
|
|
</I>><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>
|