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

Andy Satori dru@druware.com
Fri, 22 Apr 2005 15:33:13 -0400


You need to alter the config file:

cd /Library/Frameworks/Mono.framework/Versions/1.1.6/etc/mono/
open -a Xcode config

modify the line
	<dllmap dll="odbc32.dll" target="libodbc.dylib" />
to
	<dllmap dll="odbc32.dll" target="libiodbc.dylib" />

save, and rerun your program.

Andy




On Apr 22, 2005, at 3:26 PM, Andreas Stein wrote:

> Hi all!
>
> Everytime I try connecting a MySQL Database with:
>
> OdbcConnection conn= 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
>