[Mono-bugs] [Bug 427030] New: Assembly.LoadFile loads attributes directly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 17 12:54:52 EDT 2008


           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: mono-bugs at lists.ximian.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          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)
     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

** (bug-load.exe:7965): WARNING **: Could not load file or assembly
'test-679-lib-2, Version=, 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.

More information about the mono-bugs mailing list