[Mono-list] Odbc connection via UnixODBC
beniniva@csr.unibo.it
beniniva@csr.unibo.it
Wed, 23 Jun 2004 16:54:59 +0200
I've an odbc connection test, named Test.cs,connecting to MySQL database with a
connection string that works correctly on Windows XP using Visual Studio.Net
2003, but not on Linux (FedoraCore2) with Mono (1 Beta) via unixODBC.
################
[root@or2 Desktop]# mcs Test.cs -r System.Data.dll
Compilation succeeded
[root@or2 Desktop]# mono Test.exe
Unhandled Exception: System.DllNotFoundException: odbc32
in <0x00053> (wrapper managed-to-native) System.Data.Odbc.libodbc:SQLAllocHandle
(System.Data.Odbc.OdbcHandleType,intptr,intptr&)
in <0x0003f> System.Data.Odbc.OdbcConnection:.ctor ()
in <0x0000a> System.Data.Odbc.OdbcConnection:.ctor (string)
in <0x00056> (wrapper remoting-invoke-with-check)
System.Data.Odbc.OdbcConnection:.ctor (string)
in <0x0002d> Prova.Class1:Main (string[])
################
Could anybody help me?
Thanks in advance,
Valentina.