[Mono-bugs] [Bug 72248][Nor] New - CustomAttributeFormatException running Mono built assembly using MS.NET

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 5 Feb 2005 15:27:47 -0500 (EST)

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 gert.driesen@pandora.be.


--- shadow/72248	2005-02-05 15:27:47.000000000 -0500
+++ shadow/72248.tmp.14115	2005-02-05 15:27:47.000000000 -0500
@@ -0,0 +1,42 @@
+Bug#: 72248
+Product: Mono: Runtime
+Version: 1.1
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gert.driesen@pandora.be               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: CustomAttributeFormatException running Mono built assembly using MS.NET
+When you compile the attached code snipped using mcs and then run the 
+resulting assembly using MS.NET, the following exception is reported:
+Unhandled Exception: System.Reflection.CustomAttributeFormatException: 
+Binary format of the specified custom attribute was invalid.
+   at System.Reflection.CustomAttribute.GetDataForPropertyOrField
+(Boolean& isProperty, Object& value, Type& type, Boolean isLast)
+   at System.Reflection.CustomAttribute.GetObject()
+   at System.Reflection.CustomAttribute.CheckConsistencyAndCreateArray
+(CustomAttribute caItem, Type caType)
+   at System.Reflection.CustomAttribute.GetCustomAttributes(MemberInfo 
+member, Type caType, Boolean inherit)
+   at System.Reflection.RuntimePropertyInfo.GetCustomAttributes(Type 
+attributeType, Boolean inherit)
+   at System.Attribute.InternalGetCustomAttributes(PropertyInfo element, 
+Type type, Boolean inherit)
+   at System.Attribute.GetCustomAttributes(MemberInfo element, Type type, 
+Boolean inherit)
+   at System.Attribute.GetCustomAttribute(MemberInfo element, Type 
+attributeType, Boolean inherit)
+   at EntryPoint.Main()
+It seems to be caused by having a Type-backed property set on the 
+attribute class.