[Mono-list] MySQL Connector

Pedro Sobota pedro at sobota.net
Mon Jul 17 08:45:19 EDT 2006


(In case you are working with ASP.NET)
This happens to me everytime following a XSP restart. I wait like ten 
seconds then it works.

Pedro

Florian Hester escreveu:
> Hello,
>
> I am using the MySql Connecter for .NET to connect to the MySql server.
> But i am keep getting the following error:
>
> Unhandled Exception: System.Net.Sockets.SocketException: The socket is not
> connected
>
> This is the code:
>
> using System;
> using System.Data;
> using MySql.Data.MySqlClient;
>
> class test
> {
>     public static void Main (string[] args)
>     {
>         MySqlConnection conn = new
> MySqlConnection("server=localhost;database=...;uid=...;password=...");
>         conn.Open();
>         conn.Close();
>     }
> }
>
> The error happens when opening the MySql connection.
>
> The server is located on the same computer on Linux. I have tried to
> connect to MySql with PHP which worked. I have tried gmcs and mcs
> compilers, but no difference.
>
> Can anyone help me?
>
> Florian
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>   



More information about the Mono-list mailing list