[Mono-osx] MySQL Database: connection error ; libodbc.dylib

Nathan Trimble Nathan Trimble <nathan.trimble@gmail.com>
Fri, 22 Apr 2005 12:40:42 -0700


Not to mention, you might want to wrap that call to Open with a try
catch, just to keep the app from exiting so abruptly.

On 4/22/05, Andy Satori <dru@druware.com> wrote:
> You need to alter the config file:
>=20
> cd /Library/Frameworks/Mono.framework/Versions/1.1.6/etc/mono/
> open -a Xcode config
>=20
> modify the line
>         <dllmap dll=3D"odbc32.dll" target=3D"libodbc.dylib" />
> to
>         <dllmap dll=3D"odbc32.dll" target=3D"libiodbc.dylib" />
>=20
> save, and rerun your program.
>=20
> Andy
>=20
>=20
> On Apr 22, 2005, at 3:26 PM, Andreas Stein wrote:
>=20
> > Hi all!
> >
> > Everytime I try connecting a MySQL Database with:
> >
> > OdbcConnection conn=3D new OdbcConnection(connectionString);
> > conn.Open();
> >
> > my Application terminates after start.
> >
> > I get this error message on console:
> >
> > Unhandled Exception: System.DllNotFoundException: libodbc.dylib
> > Mono System.Windows.Forms Assembly [Revision: 41731; built: 2005/2/15
> > 5:56:12]
> >
> >
> > Any ideas?
> >
> > Andreas
> >
> > _______________________________________________
> > Mono-osx mailing list
> > Mono-osx@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-osx
> >
>=20
> _______________________________________________
> Mono-osx mailing list
> Mono-osx@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
>=20


--=20
Nate Trimble