[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 10:11:00 EST 2011


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

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


--- Comment #6 from Gonzalo Paniagua Javier <gonzalo at novell.com> 2011-02-19 15:10:58 UTC ---
Running your test on windows with MS.NET gives:

c:\dvp\bin\PartialNameLoader.exe Demo2.Class Demo2 ..\bin2\Demo2.dll
Start loading with [Demo2]
Demo2
Assembly [Demo2, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=bdfc9477aea2cbae] loaded
Loaded assembly [Demo2, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=bdfc9477aea2cbae]
Demo2.Class,Demo2

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object.
   at PartialNameLoader.Program.Main(String[] args)

--------------------
On linux with Mono (and with the patch I am about to push):

Start loading with [Demo2]
Demo2
Assembly [Demo2, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=bdfc9477aea2cbae] loaded
Loaded assembly [Demo2, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=bdfc9477aea2cbae]
Demo2.Class,Demo2

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object.
   at PartialNameLoader.Program.Main(String[] args)

--------------------
(I replaced Debug.WriteLine with Console.WriteLine and added 1 extra
Console.WriteLine to display the 'type,assembly' passed to Type.GetType).


It looks like the Type.GetType version does not work, even when I comment out
the lines doing the Assembly.Load.

-- 
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