[Mono-list] Link against a DLL? (System.TypeLoadException)

Alan alan.mcgovern at gmail.com
Mon May 23 05:26:50 EDT 2011


There's no need to put anything into the GAC. If both assemblies are
in the same directory it should work fine. Are the assemblies still in
the same directory when you run the application?

2011/5/23 Jacek Rużyczka <stacheldraht at interia.pl>:
> Am Montag 23 Mai 2011, 09:58:34 schrieb Doug:
>> I'm having some trouble compiling a DLL and linking against it.
>>
>> Should be trivial, so I must be doing something wrong; I keep getting the
>> error:
>> ** (./a.out:27535): WARNING **: The class HelloLib.Hello could not be
>> loaded, used in a, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
>>
>> Unhandled Exception: System.TypeLoadException: Could not load type
>> 'HelloLib.Hello' from assembly 'a, Version=1.0.0.0, Culture=neutral,
>> PublicKeyToken=null'.
>>
> Hi Doug,
>
> try adding the ready compiled DLL into your GAC by typing gavutil -i
> HelloLib.dll, then try again.
>
> Kind regards
> Jacek Rużyczka
>
> ----------------------------------------------------------------
> Najlepsze oferty na mieszkania i domy!
> Odwiedz >> http://linkint.pl/f29a9
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>


More information about the Mono-list mailing list