[Mono-devel-list] CS0006 / could not find assembly

Zoltan Varga vargaz at gmail.com
Sun Oct 31 20:51:14 EST 2004


                               Hi,

  Try adding the assemblies referenced by your assembly too, i.e.:

mcs mcs ServerGate.cs -r:CortalConsors.TradingAPI.dll -r:MDG.dll

                 Zoltan

On Sun, 31 Oct 2004 23:44:19 +0100, Ulrich Staudinger
<us at activestocks.de> wrote:
> Hello,
> 
> can someone please help me?
> 
> i have the following strange occurance and i can't find a solution!
> 
> That's in my folder:
> root at usdev:/home/us/.NET/ServerTestsNet# ls
> CortalConsors.TradingAPI.dll  ServerGate.cs  ServerGate.exe
> 
> I export MONO_PATH:
> root at usdev:/home/us/.NET/ServerTestsNet# export
> MONO_PATH=/home/us/.NET/ServerTestsNet/
> 
> and i try to compile:
> root at usdev:/home/us/.NET/ServerTestsNet# mcs ServerGate.cs
> -r:CortalConsors.TradingAPI.dll
> 
> ** (/usr/share/dotnet/bin/mcs/mcs.exe:10755): WARNING **: Could not find
> assembly MDG, references from
> /home/us/.NET/ServerTestsNet/CortalConsors.TradingAPI.dll
> (assemblyref_index=1)
>      Major/Minor: 1,0
>      Build:       1,0
>      Token:       98927b61ec42a6b8
> System error: Datei oder Verzeichnis nicht gefunden
> 
> error CS0006: Cannot find assembly `CortalConsors.TradingAPI.dll'
> Log:
> 
> Compilation failed: 1 error(s), 0 warnings
> 
> When trying to compile with an absolute filename, the same problem occurs:
> root at usdev:/home/us/.NET/ServerTestsNet# mcs ServerGate.cs
> -r:/home/us/.NET/ServerTestsNet/CortalConsors.TradingAPI.dll
> 
> ** (/usr/share/dotnet/bin/mcs/mcs.exe:10761): WARNING **: Could not find
> assembly MDG, references from
> /home/us/.NET/ServerTestsNet/CortalConsors.TradingAPI.dll
> (assemblyref_index=1)
>      Major/Minor: 1,0
>      Build:       1,0
>      Token:       98927b61ec42a6b8
> System error: Datei oder Verzeichnis nicht gefunden
> 
> error CS0006: Cannot find assembly
> `/home/us/.NET/ServerTestsNet/CortalConsors.TradingAPI.dll'
> Log:
> 
> Compilation failed: 1 error(s), 0 warnings
> root at usdev:/home/us/.NET/ServerTestsNet#
> 
> What do i need to do to fix this Cannot find assembly problem?
> 
> Many thanks in advance,
> regards,
> Ulrich
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>



More information about the Mono-devel-list mailing list