[Mono-devel-list] mono-0.93 + debian = problems

Artur Brodowski bzdurqa at wp.pl
Tue Jun 1 06:11:50 EDT 2004

W liście z wto, 01-06-2004, godz. 10:45 +0200, Gonzalo Paniagua Javier
> Are you using debian icu 2.6.1 package? I ended up compiling from the
> original source with an option to configure ('--with-data=files' ?) that
> made it actually work.

Thanks Gonzalo, compiling ICU did help, but I still cannot run apps that
use ByteFX.Data Mysql provider. It's present, and it is seen by mcs:

$ ls /usr/lib/mono/gac/ByteFX.Data/
ByteFX.Data.dll  __AssemblyInfo__

$ ls -l /usr/lib/mono/1.0/ByteFX.Data.dll
lrwxrwxrwx    1 root     root           71 May 31
16:32 /usr/lib/mono/1.0/ByteFX.Data.dll
-> /usr/lib/mono/gac/ByteFX.Data/

$ mcs -r:System.Data -r:ByteFX.Data sample.cs
Compilation succeeded

$ mono ./sample.exe

Unhandled Exception: ByteFX.Data.MySqlClient.MySqlException: Unable to
connect to any of the specified MySQL hosts
in <0x00158> ByteFX.Data.MySqlClient.Driver:Open
in <0x0003c> ByteFX.Data.MySqlClient.MySqlInternalConnection:Open ()
in <0x000ef> ByteFX.Data.MySqlClient.MySqlPool:CreateNewPooledConnection
in <0x00215> ByteFX.Data.MySqlClient.MySqlPool:GetPooledConnection ()
in <0x00053> ByteFX.Data.MySqlClient.MySqlPool:GetConnection ()
in <0x0010c> ByteFX.Data.MySqlClient.MySqlPoolManager:GetConnection
in <0x0007c> ByteFX.Data.MySqlClient.MySqlConnection:Open ()

Code is fine, I can log in to the database from shell:

string connString =
	"Server=localhost;" +
        "Database=dbname;" +
        "User ID=user;" +
dbh = new MySqlConnection(connString);

Even sqlsharp acts strange:

$ sqlsharp

SQL# \provider mysqlnet
The default Provider is LOADEXTPROVIDER
          Assembly: ByteFX.Data
  Connection Class: ByteFX.Data.MySQLClient.MySQLConnection
SQL# \connectionstring server=localhost;database=dbname;user
SQL# \open
Attempt to open connection...
Loading external provider...
Error: unable to load the assembly of the provider: ByteFX.Data : File
'ByteFX.Data' not found.

I cannot figure it out. I've tried to install mono 0.91 from experimetal
debs and add latest ByteFX.Data manually with gacutil, but it didn't
work. Then I compiled Mono 0.93 from the source, but again something 
is broken, and it seems to be Debian specific (everything runs on the
Gentoo box).

only so many songs can be sung with two lips two lungs and one tongue

More information about the Mono-devel-list mailing list