[Mono-bugs] [Bug 76070][Cri] New - Type.GetType() fails if type is in referenced assembly

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Sep 12 13:50:21 EDT 2005

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jo at lumumba.luc.ac.be.


--- shadow/76070	2005-09-12 13:50:21.000000000 -0400
+++ shadow/76070.tmp.21670	2005-09-12 13:50:21.000000000 -0400
@@ -0,0 +1,46 @@
+Bug#: 76070
+Product: Mono: Runtime
+Version: 1.1
+OS Details: Ubuntu Linux Breezy Badger 5.10
+Status: NEW   
+Priority: Critical
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: jo at lumumba.luc.ac.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Type.GetType() fails if type is in referenced assembly
+Description of Problem:
+When trying to get a type defined in a referenced assembly, using
+Type.GetType("NameOfType"), this returns null. However the type surely exists!
+Steps to reproduce the problem:
+1. Create a class, compile into a library
+2. Create a Main class, try to get the type of the referenced class from it
+using Type.GetType(string), compile and execute
+Actual Results:
+It returns null.
+Expected Results:
+It returns the corresponding type.
+How often does this happen? 
+Additional Information:
+I will upload a test case in a few minutes. Furthermore, I tested it with a
+few Boo classes, which give the same result. It's thus definitely a bug in
+the runtime in my opinion.

More information about the mono-bugs mailing list