[Mono-bugs] [Bug 544011] New: Unable to execute app when using custom attributes

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 2 17:46:47 EDT 2009


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


           Summary: Unable to execute app when using custom attributes
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Blocker
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: fak at kruegersystems.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=320908)
 --> (http://bugzilla.novell.com/attachment.cgi?id=320908)
ZIP containing example project (examples/StocksTouch)

Description of Problem:

I am unable to successfully execute the program when using custom attributes.

Unhandled Exception: System.TypeLoadException: Could not load type
'System.Runtime.CompilerServices.CompilerGeneratedAttribute' from assembly
'StocksTouch'.
  at (wrapper managed-to-native)
System.MonoCustomAttrs:GetCustomAttributesInternal
(System.Reflection.ICustomAttributeProvider,System.Type,bool)
  at System.MonoCustomAttrs.GetCustomAttributesBase (ICustomAttributeProvider
obj, System.Type attributeType) [0x00000] 
  at System.MonoCustomAttrs.GetCustomAttributes (ICustomAttributeProvider obj,
System.Type attributeType, Boolean inherit) [0x00000] 
  at System.MonoCustomAttrs.GetCustomAttribute (ICustomAttributeProvider obj,
System.Type attributeType, Boolean inherit) [0x00000] 
  at System.Attribute.GetCustomAttribute (System.Reflection.MemberInfo element,
System.Type attributeType, Boolean inherit) [0x00000] 
  at System.Attribute.GetCustomAttribute (System.Reflection.MemberInfo element,
System.Type attributeType) [0x00000] 
  at MonoTouch.ObjCRuntime.Class.Register (System.Type type, System.String
name) [0x00000] 
  at MonoTouch.ObjCRuntime.Class.Register (System.Type type) [0x00000] 
  at MonoTouch.ObjCRuntime.Runtime.RegisterAssembly (System.Reflection.Assembly
a) [0x00000] 
Symbol file /Users/fak/Library/Application Support/iPhone
Simulator/User/Applications/7F13694F-683E-4B65-8233-FBEAA7238182/StocksTouch.app/StocksTouch.exe.mdb
doesn't match image /Users/fak/Library/Application Support/iPhone
Simulator/User/Applications/7F13694F-683E-4B65-8233-FBEAA7238182/StocksTouch.app/StocksTouch.exeMissing
method .ctor in assembly /Users/fak/Library/Application Support/iPhone
Simulator/User/Applications/7F13694F-683E-4B65-8233-FBEAA7238182/StocksTouch.app/StocksTouch.exe,
type System.Runtime.CompilerServices.CompilerGeneratedAttributeThe class
System.Runtime.CompilerServices.CompilerGeneratedAttribute could not be loaded,
used in StocksTouchCan't find custom attr constructor image:
/Users/fak/Library/Application Support/iPhone
Simulator/User/Applications/7F13694F-683E-4B65-8233-FBEAA7238182/StocksTouch.app/StocksTouch.exe
mtoken: 0x0a000091


Steps to reproduce the problem:
1. Compile and run attached project (examples/StocksTouch)


Actual Results:

Crashes with the above exception

Expected Results:

Displays a blank table

How often does this happen? 

Always

Additional Information:

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