[Mono-list] Odbc connection via UnixODBC

T Sureshkumar TSureshkumar@novell.com
Wed, 23 Jun 2004 22:56:36 -0600


in /usr/lib, make a sym link to your libodbc. (libodbc.so.1.0.0 or
whatever version you are using) 
 
ln libodbc.so libodbc32.so 
 
 
suresh. 
.. 
 
>>><beniniva@csr.unibo.it> 06/23 9:24 pm >>> 
 
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 System.Data.dll 
Compilation succeeded 
[root@or2 Desktop]# mono Test.exe 
 
Unhandled Exception: System.DllNotFoundException: odbc32 
in <0x00053> (wrapper managedSystem.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 
System.Data.Odbc.OdbcConnection:.ctor (string) 
in <0x0002d> Prova.Class1:Main (string[]) 
 
################ 
 
Could anybody help me? 
 
Thanks in advance, 
 
Valentina. 
_______________________________________________ 
Mono 
maillist* Mono 
http://lists.ximian.com/mailman/listinfo/mono