[Mono-bugs] [Bug 640288] New: Missing ReflectionTypeLoadException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Sep 17 18:52:49 EDT 2010


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

https://bugzilla.novell.com/show_bug.cgi?id=640288#c0


           Summary: Missing ReflectionTypeLoadException
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          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;
using System.Reflection.Emit;

class Program {
    static void Main ()
    {
        AssemblyName asmname = new AssemblyName();
        asmname.Name = "assemfilename.exe";        
        AssemblyBuilder asmbuild = System.Threading.Thread.GetDomain().
                    DefineDynamicAssembly(asmname,
AssemblyBuilderAccess.RunAndSave);
        ModuleBuilder modbuild = asmbuild.DefineDynamicModule( "modulename",
           "assemfilename.exe" );
        TypeBuilder typebuild1 = modbuild.DefineType( "typename" );

        var t = asmbuild.GetTypes();
    }
}


Mono:
nothing

NET

System.Reflection.ReflectionTypeLoadException: Unable to lo ad one or more of
the requested types. Retrieve the LoaderExceptions property for more
information.
   at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)
   at System.Reflection.Assembly.GetTypes()
   at Program.Main()



This is more serious than it looks like, we return original TypeBuilder which
returns some unexpectedly different values than Type under this circumstances

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