[Gtk-sharp-list] Need help - solved
Mike Kestner
mkestner@ximian.com
Thu, 26 Aug 2004 09:29:02 -0500
On Thu, 2004-08-26 at 03:35, Anset wrote:
> If anyone could explain to me why it makes a difference wether I load the
> libraries from the GAC or from LOCAL, I would very much appreciate it.
> Reading about the .NET framework and all, I was under the impression that
> the GAC was nothing more than an ultra-luxurious LIB PATH...
It was a bug. The bug is fixed in cvs. If you want to see the patch
that fixed it, you can look at:
http://lists.ximian.com/archives/public/mono-patches/2004-August/045697.html
http://lists.ximian.com/archives/public/mono-patches/2004-August/045698.html
To make a long story short, on the MS runtime/classlibs, you can't use a
partial assembly name to lookup a type in a GAC installed assembly using
System.Type.GetType (). Partial assembly names are fine for local
assemblies which is why copying them from the gac to the app dir was
being suggested as a workaround.
The fix committed yesterday uses Assembly.LoadWithPartialName to get the
assembly and look up the type with Assembly.GetType. This was verified
to work on both .Net and mono.
--
Mike Kestner <mkestner@ximian.com>