[Mono-bugs] [Bug 661461] Assembly.Load(AssemblyName) doesn't work with partial names

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Feb 19 11:34:34 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=661461

https://bugzilla.novell.com/show_bug.cgi?id=661461#c8


--- Comment #8 from David Schmitt <david at dasz.at> 2011-02-19 16:34:33 UTC ---
I've added the changes you described (console, print gettype argument) and both
with or without the two marked lines it does not NRE on microsoft for me:


        static void Main(string[] args)
        {
            var typeName  = args[0];
            var assemblyName =  args[1];
            codebase =  args[2];
            AppDomain.CurrentDomain.AssemblyResolve += new
ResolveEventHandler(CurrentDomain_AssemblyResolve);

            // When the following two lines are removed this still works
against Microsoft, but fails under mono
            var assembly = Assembly.Load(assemblyName);
            Console.WriteLine("Loaded assembly [{0}]", assembly.FullName);

            var request = String.Format("{0},{1}", typeName, assemblyName);
            Console.WriteLine("requesting      [{0}]", request);
            var type = Type.GetType(request);
            Console.WriteLine("Loaded type     [{0}]",
type.AssemblyQualifiedName);

            Console.ReadKey();
        }

I'll re-test with mono on monday.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list