[Mono-bugs] [Bug 508528] New: Assembly.GetType should result in FileLoadException for missing dependent assembly in reflection-only context
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat May 30 07:44:51 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=508528
Summary: Assembly.GetType should result in FileLoadException
for missing dependent assembly in reflection-only
context
Classification: Mono
Product: Mono: Runtime
Version: SVN
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: gert.driesen at pandora.be
QAContact: mono-bugs at lists.ximian.com
Found By: ---
For an assembly that is loaded in reflection-only context, Assembly.GetType
should result in a FileLoadException when a dependent assembly cannot be loaded
/ found.
Note that Assembly.GetType should continue to return null when the assembly is
NOT loaded in reflection-only context.
To reproduce:
1. extract attached gzipped tar archive.
2. run 'make'.
Actual result:
** (test.exe:5348): WARNING **: Cannot resolve dependency to assembly 'A,
Versio
n=0.0.0.0, Culture=neutral, PublicKeyToken=null' because it has not been
preload
ed. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded
or loaded on demand through the ReflectionOnlyAssemblyResolve event.
Unhandled Exception: System.Exception: #A1
at Program.Main () [0x00000]
make: *** [all] Error 1
Expected result:
Nothing is written to stdout/stderr, and process exits with success code.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list