[Mono-list] Problem with MySQL Data Provider (ByteFx)
beniniva@csr.unibo.it
beniniva@csr.unibo.it
Mon, 28 Jun 2004 15:31:58 +0200
Hi,
I've mono 1 Beta with Fedora Core 2.
I try to test a connection string with MySQL Data Provider (ByteFx), compilation
is all right but running failed:
######################
[root@or2 mono]# mcs EsempioByteFX.cs -r System.Data.dll -r ByteFX.Data.dll
Compilation succeeded
[root@or2 mono]# mono EsempioByteFX.exe
Unhandled Exception: System.NullReferenceException: A null value was found where
an object instance was required.
in <0x0025a> ByteFX.Data.MySqlClient.MySqlStream:get_DataAvailable ()
in <0x00051> ByteFX.Data.Common.MultiHostStream:Read (byte[],int,int)
in <0x0003d> ByteFX.Data.MySqlClient.MySqlStream:ReadInt24 ()
in <0x00050> (wrapper remoting-invoke-with-check) ByteFX.Data.MySqlClient.MySqlS
tream:ReadInt24 ()
in <0x0005b> ByteFX.Data.MySqlClient.Driver:ReadRawPacket ()
in <0x0004e> ByteFX.Data.MySqlClient.Driver:ReadPacket ()
in <0x00094> ByteFX.Data.MySqlClient.Driver:Open (ByteFX.Data.MySqlClient.MySqlC
onnectionString)
in <0x0003c> ByteFX.Data.MySqlClient.MySqlInternalConnection:Open ()
in <0x000ef> ByteFX.Data.MySqlClient.MySqlPool:CreateNewPooledConnection ()
in <0x00212> ByteFX.Data.MySqlClient.MySqlPool:GetPooledConnection ()
in <0x00052> ByteFX.Data.MySqlClient.MySqlPool:GetConnection ()
in <0x00117> ByteFX.Data.MySqlClient.MySqlPoolManager:GetConnection (ByteFX.Data
.MySqlClient.MySqlConnectionString)
in <0x00077> ByteFX.Data.MySqlClient.MySqlConnection:Open ()
in <0x0004f> (wrapper remoting-invoke-with-check) ByteFX.Data.MySqlClient.MySqlC
onnection:Open ()
in <0x00070> ConnessioneByteFX.Class1:Main (string[])
##################
If I use Sqlsharp I obtein:
##################
SQL# \Provider MySqlNet
The default Provider is LOADEXTPROVIDER
Assembly: ByteFX.Data
Connection Class: ByteFX.Data.MySQLClient.MySQLConnection
SQL# \ConnectionString Server=localhost; Database=db1; UserID=root; Password=roo
tpwd;
SQL# \Open
Attempt to open connection...
Loading external provider...
Error: unable to load the assembly of the provider: ByteFX.Data : File 'ByteFX.D
ata' not found.
################
I've checked ... /usr/lib/mono/1.0/ByteFX.Data.dll exist and also
/usr/lib/mono/2.0/ByteFX.Data.dll.
What can I do?
Thanks,
Valentina.