[Mono-list] Odbc connection via UnixODBC

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


This is a MIME message. If you are reading this text, you may want to 
consider changing to a mail reader or gateway that understands how to 
properly handle MIME multipart messages.

--=__PartBA9B2D14.1__=
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

in /usr/lib, make a sym link to your libodbc. (libodbc.so.1.0.0 or
whatever version you are using) 
 
ln -s 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 -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.
_______________________________________________
Mono-list 
    maillist* -* Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


--=__PartBA9B2D14.1__=
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
   =20
  </head>
  <body style=3D"margin-right: 4px; margin-top: 4px; margin-bottom: 1px; =
margin-left: 4px">
    <DIV>
      in /usr/lib, make a sym link to your libodbc. (libodbc.so.1.0.0 =
or=20
      whatever version you are using)
    </DIV>
    <DIV>&nbsp;</DIV>
    <DIV>
      ln -s libodbc.so libodbc32.so
    </DIV>
    <DIV>&nbsp;</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>
      suresh.
    </DIV>
    <DIV>    ..
    <DIV>
    <DIV><br><br>&gt;&gt;&gt;&lt;beniniva@csr.unibo.it&gt; 06/23 9:24 pm =
&gt;&gt;&gt;<br><br>
I've an odbc connection test, named Test.cs,connecting to MySQL database =
with a<br>
connection string&#160; that works correctly on Windows XP using Visual =
Studio.Net<br>
2003, but not on Linux (FedoraCore2) with Mono (1 Beta) via unixODBC.<br><b=
r>
    ################<br>[root@or2 Desktop]# mcs Test.cs -r System.Data.dll<=
br>
    Compilation succeeded<br>[root@or2 Desktop]# mono Test.exe<br><br>
    Unhandled Exception: System.DllNotFoundException: odbc32<br>in =
&lt;0x00053&gt;=20
    (wrapper managed-to-native) System.Data.Odbc.libodbc:SQLAllocHandle<br>=

    (System.Data.Odbc.OdbcHandleType,intptr,intptr&amp;)<br>in &lt;0x0003f&=
gt;=20
    System.Data.Odbc.OdbcConnection:.ctor ()<br>in &lt;0x0000a&gt;=20
    System.Data.Odbc.OdbcConnection:.ctor (string)<br>in &lt;0x00056&gt; =
(wrapper=20
    remoting-invoke-with-check)<br>System.Data.Odbc.OdbcConnection:.ctor=20=

    (string)<br>in &lt;0x0002d&gt; Prova.Class1:Main (string[])<br><br>
    ################<br><br>Could anybody help me?<br><br>Thanks in =
advance,<br><br>
Valentina.<br>_______________________________________________<br>Mono-list=
=20
    maillist&#160; -&#160; Mono-list@lists.ximian.com<br>
    http://lists.ximian.com/mailman/listinfo/mono-list<br>
  </body>
</html>

--=__PartBA9B2D14.1__=--