[Mono-bugs] [Bug 630773] New: Type::Assembly loads dependant dll

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Aug 12 11:09:24 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=630773

http://bugzilla.novell.com/show_bug.cgi?id=630773#c0


           Summary: Type::Assembly loads dependant dll
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: misc
        AssignedTo: rkumpera at novell.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


using System;
using System.Reflection;

class Program {
    static void Main ()
    {
        Assembly asm = Assembly.Load("bug-0-lib");
        Type t = asm.GetType("X");

        Console.WriteLine (t.Assembly);
        Console.WriteLine (t.Module);
    }
}


NET

bug-0-lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
bug-0-lib.dll

Mono

Could not load file or assembly 'bug-1-lib, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null' or one of its dependencies.

Unhandled Exception: System.TypeLoadException: Could not load type 'X' from
assembly 'bug-0-lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
  at (wrapper managed-to-native) System.MonoType:get_Assembly
(System.MonoType*)
  at Program.Main () [0x00000] in <filename unknown>:0 


This blocks MD compilation

-- 
Configure bugmail: http://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