[Mono-devel-list] MySql Connectivity in Mono

Colt D. Majkrzak majkrzak at gmail.com
Mon Jan 3 21:04:28 EST 2005

In attempting to install MySql.Data into mono, I'm running into the
following problem.  The code works in Windows with MS.NET+IIS+MySql.Data but
when I take the MySql.Data.dll under Linux
[/]# gacutil -i ./MySQL.Data.dll
MySql.Data installed into the gac (/usr/local/lib/mono/gac)

[/]# gacutil -l MySql.Data
The following assemblies are installed into the GAC:
MySql.Data, Version=, Culture=neutral,
Number of items = 1

lrwxrwxrwx    1 root     root           79 Jan  3 19:52 MySQL.Data.dll ->

But even with all this, when I try to load the test webpage, I get the

Server error in '/asp' application


Description: Error processing request. 
Error Message: HTTP 500. 

Stack Trace: System.IO.FileNotFoundException: File
'/home/spiderma/public_html/asp/bin/testproj.dll' not found.
in (unmanaged) (wrapper managed-to-native)
System.Reflection.Assembly:LoadFrom (string)

In looking in the error_log I get the following:

[/etc/httpd/logs]# tail error_log

** (/usr/lib/mono/1.0/mod-mono-server.exe:26053): WARNING **: Could not find
assembly MySql.Data, references from
/home/spiderma/public_html/asp/bin/testproj.dll (assemblyref_index=3)
     Major/Minor: 1,0
     Build:       3,31712
     Token:       c5687fc88969c44d
System error: No such file or directory

What seems to be the problem? Why isn't mono finding MySql.Data ?

Thanks in advance!

More information about the Mono-devel-list mailing list