https://bugzilla.novell.com/show_bug.cgi?id=427030
Summary: Assembly.LoadFile loads attributes directly
Product: Mono: Runtime
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Blocker
Priority: P5 - None
Component: misc
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
This simple apps shows the problem
using System;
using System.Reflection;
class C
{
public static void Main (string[] args)
{
foreach (string s in args)
Assembly.LoadFrom (s);
}
}
When executed like: app.exe ../test/bug.dll
and bug.dll has an attribute which is defined in separate assembly Mono crashes
with but works fine on .NET
mono bug-load.exe ../tests/dlls/test-679-1/test-679-lib.dll
** (bug-load.exe:7965): WARNING **: The following assembly referenced from
/svn/mcs/tests/dlls/test-679-1/test-679-lib.dll could not be loaded:
Assembly: test-679-lib-2 (assemblyref_index=1)
Version: 0.0.0.0
Public Key: (none)
The assembly was not found in the Global Assembly Cache, a path listed in the
MONO_PATH environment variable, or in the location of the executing assembly
(/svn/mcs/tests/dlls/test-679-1/).
** (bug-load.exe:7965): WARNING **: Could not load file or assembly
'test-679-lib-2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one
of its dependencies.
** (bug-load.exe:7965): WARNING **: Missing method .ctor in assembly
/svn/mcs/tests/dlls/test-679-1/test-679-lib.dll, type LibAAttribute
** (bug-load.exe:7965): WARNING **: Can't find custom attr constructor image:
/svn/mcs/tests/dlls/test-679-1/test-679-lib.dll mtoken: 0x0a000005
--
Configure bugmail: https://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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs