error CS0006: cannot find metadata file `System.Data.dll`

3 messages Options Options
Embed this Post
Permalink
lrt

error CS0006: cannot find metadata file `System.Data.dll`

Reply Threaded MoreMore options
Print post
Permalink
i'm trying to follow the guide here to connect to a MySql database with C#. I already downloaded the Connector/NET 5.2 and followed the instructions here.

when i run, # gacutil -i /etc/mono/1.0/MySql.Data.dll i get "Installed /etc/mono/1.0/MySql.Data.dll into the gac (/usr/lib/mono/gac). so that looks all good.

but then i try to run, # gmcs TestExample.cs -r:System.Data.dll -r:/usr/lib/mono/gac/MySql.Data/5.2.3.0_c5687fc88969c44d/MySql.Data.dll (as specified in the guide)-- and i get:
# error CS0006: cannot find metadata file `System.Data.dll`

i did a 'find' command and, its true, the file is missing.

anyone know how i can get this to work?

i'm running Mysql 5.0.51a, Ubuntu 8.04, and Mono 1.9.1
Michael Hutchinson

Re: error CS0006: cannot find metadata file `System.Data.dll`

Reply Threaded MoreMore options
Print post
Permalink
On Thu, Sep 4, 2008 at 4:27 PM, lrt <ltracchia@...> wrote:

>
> i'm trying to follow the guide  http://www.mono-project.com/MySQL here  to
> connect to a MySql database with C#. I already downloaded the
> http://dev.mysql.com/downloads/connector/net/5.2.html Connector/NET 5.2  and
> followed the instructions
> http://dev.mysql.com/doc/refman/5.0/en/connector-net-installation-unix.html
> here .
>
> when i run, # gacutil -i /etc/mono/1.0/MySql.Data.dll i get "Installed
> /etc/mono/1.0/MySql.Data.dll into the gac (/usr/lib/mono/gac). so that looks
> all good.
>
> but then i try to run, # gmcs TestExample.cs -r:System.Data.dll
> -r:/usr/lib/mono/gac/MySql.Data/5.2.3.0_c5687fc88969c44d/MySql.Data.dll (as
> specified in the guide)-- and i get:
> # error CS0006: cannot find metadata file `System.Data.dll`
>
> i did a 'find' command and, its true, the file is missing.
>
> anyone know how i can get this to work?
>
> i'm running Mysql 5.0.51a, Ubuntu 8.04, and Mono 1.9.1

Unlike most other distros, Debian/Ubuntu breaks Mono up into many
smaller packages. One of them contains the 1.0 System.Data.dll, and
another contains the 2.0 System.Data.dll, though I can't remember the
package names right now.

--
Michael Hutchinson
http://mjhutchinson.com
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@...
http://lists.ximian.com/mailman/listinfo/mono-devel-list
lrt

Re: error CS0006: cannot find metadata file `System.Data.dll`

Reply Threaded MoreMore options
Print post
Permalink
ok i found the package
(http://packages.ubuntu.com/search?suite=default§ion=all&arch=any&searchon=contents&keywords=System.Data.dll).
i installed both 1.0 and 2.0, but which one am i supposed to
use/install???

i also found i have to install this package to get the .exe file to
run because i was getting the following error:
"Unhandled Exception: System.NotSupportedException: CodePage 1252 not supported"
http://packages.ubuntu.com/search?suite=hardy§ion=all&arch=any&searchon=contents&keywords=libmono-i18n2.0-cil
http://ubuntuforums.org/showthread.php?t=831409


On Thu, Sep 4, 2008 at 5:59 PM, Michael Hutchinson
<m.j.hutchinson@...> wrote:

> Unlike most other distros, Debian/Ubuntu breaks Mono up into many
> smaller packages. One of them contains the 1.0 System.Data.dll, and
> another contains the 2.0 System.Data.dll, though I can't remember the
> package names right now.
>
> --
> Michael Hutchinson
> http://mjhutchinson.com
>
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@...
http://lists.ximian.com/mailman/listinfo/mono-devel-list