I updated yesterday to 5.0.3 in the hopes this would fix all my code generation problems with 5.0.1. Thankfully it DID fix most of them, but this one still remains.
I believe the problem is occurring due to XML serialization of a pretty complicated object hierarchy including lists. The call stack is confusing, though, in that it mentions some methods that have NOTHING to do with that call stack. (references to Vuforia and LEMediatorVisualConsole)
I guess I’m going to try to replace one list which was being complained about in 5.0.1 with an array or a non-generic List and see what happens, I guess…
System.ExecutionEngineException: Attempting to call method ‘System.Reflection.MonoProperty::GetterAdapterFrame’ for which no ahead of time (AOT) code was generated.
Stack trace of the exception:
at System.Reflection.EventInfo+AddEventAdapter.Invoke (System.Object _this, System.Delegate dele) [0x00000] in :0
at System.Reflection.MonoProperty+GetterAdapter.Invoke (System.Object _this) [0x00000] in :0
at Vuforia.SurfaceBehaviour…ctor () [0x00000] in :0
at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[ ] index) [0x00000] in :0
at Vuforia.SurfaceBehaviour…ctor () [0x00000] in :0
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteListContent (System.Object container, System.Xml.Serialization.TypeData listType, System.Xml.Serialization.ListMap map, System.Object ob, System.Text.StringBuilder targetString) [0x00000] in :0
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteMemberElement (System.Xml.Serialization.XmlTypeMapElementInfo elem, System.Object memberValue) [0x00000] in :0
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteElementMembers (System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList) [0x00000] in :0
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteObjectElementElements (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob) [0x00000] in :0
at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in :0
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteObjectElement (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob, System.String element, System.String namesp) [0x00000] in :0
at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in :0
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteObject (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob, System.String element, System.String namesp, Boolean isNullable, Boolean needType, Boolean writeWrappingElem) [0x00000] in :0
at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in :0
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteMemberElement (System.Xml.Serialization.XmlTypeMapElementInfo elem, System.Object memberValue) [0x00000] in :0
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteElementMembers (System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList) [0x00000] in :0
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteObjectElementElements (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob) [0x00000] in :0
at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in :0
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteObjectElement (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob, System.String element, System.String namesp) [0x00000] in :0
at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in :0
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteObject (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob, System.String element, System.String namesp, Boolean isNullable, Boolean needType, Boolean writeWrappingElem) [0x00000] in :0
at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in :0
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteMemberElement (System.Xml.Serialization.XmlTypeMapElementInfo elem, System.Object memberValue) [0x00000] in :0
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteElementMembers (System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList) [0x00000] in :0
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteObjectElementElements (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob) [0x00000] in :0
at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in :0
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteObjectElement (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob, System.String element, System.String namesp) [0x00000] in :0
at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in :0
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteObject (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob, System.String element, System.String namesp, Boolean isNullable, Boolean needType, Boolean writeWrappingElem) [0x00000] in :0
at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in :0
at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteRoot (System.Object ob) [0x00000] in :0
at System.Xml.Serialization.XmlSerializer.Serialize (System.Object o, System.Xml.Serialization.XmlSerializationWriter writer) [0x00000] in :0
at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in :0
at System.Xml.Serialization.XmlSerializer.Serialize (System.Xml.XmlWriter writer, System.Object o, System.Xml.Serialization.XmlSerializerNamespaces namespaces) [0x00000] in :0
at System.Xml.Serialization.XmlSerializer.Serialize (System.Xml.XmlWriter xmlWriter, System.Object o) [0x00000] in :0
at liveadz.liveadzenterprise.storage.impl.LEStorage.SerializeObject (System.Object pObject) [0x00000] in :0
at LEMediatorVisualConsole.OnRemove () [0x00000] in :0
at liveadz.liveadzenterprise.controller.LECommandStart.InitAppPrefs () [0x00000] in :0