[Mono-devel-list] problem with paths for assemblies (mono 1.0, mod-mono-server 1.0)

Francisco Figueiredo Jr. fxjrlists at yahoo.com.br
Sat Jul 10 11:09:43 EDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Maciej Liżewski wrote:
| Hi,
|

Hi.
|  I have problem with Mono ASP.NET: the code below doesn't work...

| It shows error:
| Error message: /tmp/86123.cs(9,0) : error CS0246: The namespace
| `ByteFX.Data.MySqlClient' can not be found (missing assembly reference?)
| (0,0) : error failed: 1 error(s), 0 warnings
|
| The assembly is in: /usr/local/lib/mono/1.0/
|

Hmmm, did you check with gacutil -l if ByteFX assembly is in the GAC?
It should be and should be found correctly by runtime.

| Is there some way to set search path, and the default setting is
incorrect?
| I have another problem with executables - mcs compiles the source without
| errors, but the runtime framework (mono) shows:
|
| #>mono test.exe
|
| Could not find assembly Mono.Data, references from /root/mono/test.exe
| (assemblyref_index=3)
|      Major/Minor: 0,0
|      Build:       0,0
|      Token:
|
| cannot open assembly test.exe
|
|
| the assembly is in the default directory. When I put a copy of
Mono.Data.dll
| to the directory where I run the test - everything works ok. Again - maybe
| this is some problem with search paths?
| MONO_PATH isn't set, so the framework should use default path
(EPREFIX=/usr/
| local)
|

Hmmmm I can't find the Mono.Data.dll assembly anywhere in my install
dir, except in mcs/class/Mono.Data/test/ dir. I'm using cvs.


Am I missing something here?

I could get the Mono.Data namespace using the System.Data assembly.

I hope it helps.

Regards,

Francisco Figueiredo Jr.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQEVAwUBQPAGt/7iFmsNzeXfAQI7cwgAio5XMtkTAtR+YXGS4puuiDGanfBafRd9
IPgzJa/Ebn1HBxJ4smESsmqTHTeHZrvM45v663N6IPWBqUKDmm35IIX9LpHSGL8G
ElPekIztDZdnn+XP+IPjiscQLQQNim2jRpw9BAvSzpxM5mlRVY7K0B7vz/FWRlVb
KtF/qBkyz4AhJUJwtFWilpNV+5hA3ShnpzPpheF7etDMARfaE6zALgjqVPabgPBS
DNlIXvhjaYxTnz5TJw2qGHmJDTN4gWQ4WJ882alt5yH7E/WZgRM1rxLcCgQGQ+hj
AqhKCI31LX9tWK8W/gsUSMkEKyOCW4A4FDZcaYz1KHzAadCOD5TcOA==
=nKVP
-----END PGP SIGNATURE-----



More information about the Mono-devel-list mailing list