ReflectionTypeLoadException under Mono

Jul 12, 2007 at 1:12 PM
Hello,

I've made a custom plugin which work fine with Reflector and MS Framework 2.0. I've tried MoMA (Mono Migration Analyzer) to check that both Reflector and my plugin are compatible with the Mono plateform v1.2.4. When i launch Reflector under Mono i get a ReflectionTypeLoadException when trying to add/load my custom plugin:

The classes in the module cannot be loaded. (ReflectionTypeLoadException)

LoaderExceptions:
Could not load type 'Reflexil.Editors.MultipleInstructionReferenceEditor' from assembly 'Reflexil, Version=0.2.0.0, Culture=neutral'. (TypeLoadException)
Could not load type 'Reflexil.Forms.GenericMemberReferenceForm`1T' from assembly 'Reflexil, Version=0.2.0.0, Culture=neutral'. (TypeLoadException)
Could not load type 'Reflexil.Forms.InstructionForm' from assembly 'Reflexil, Version=0.2.0.0, Culture=neutral'. (TypeLoadException)
Could not load type 'Reflexil.Forms.InstructionSelectForm' from assembly 'Reflexil, Version=0.2.0.0, Culture=neutral'. (TypeLoadException)
Could not load type 'Reflexil.Forms.ReflexilWindow' from assembly 'Reflexil, Version=0.2.0.0, Culture=neutral'. (TypeLoadException)
Could not load type 'Reflexil.Handlers.MethodDefinitionHandler' from assembly 'Reflexil, Version=0.2.0.0, Culture=neutral'. (TypeLoadException)
Could not load type 'Reflexil.Utils.DataManager' from assembly 'Reflexil, Version=0.2.0.0, Culture=neutral'. (TypeLoadException)

Types:
Reflexil.Editors.BasePopupEditor
Reflexil.Editors.GenericOperandReferenceEditor`2
Reflexil.Editors.IOperandEditor
Reflexil.Editors.NotSupportedOperandEditor
Reflexil.Editors.NullOperandEditor
Reflexil.Editors.GenericTypeReferenceEditor
Reflexil.Editors.ByteEditor
Reflexil.Editors.DoubleEditor
Reflexil.Editors.GenericOperandEditor`1
Reflexil.Editors.IntegerEditor
Reflexil.Editors.LongEditor
Reflexil.Editors.SByteEditor
Reflexil.Editors.SingleEditor
Reflexil.Editors.StringEditor
Reflexil.Editors.FieldReferenceEditor
Reflexil.Editors.GenericMemberReferenceEditor`1
Reflexil.Editors.MethodReferenceEditor
Reflexil.Editors.TypeReferenceEditor
Reflexil.Forms.CreateInstructionForm
Reflexil.Forms.EditInstructionForm
Reflexil.Handlers.IHandler
Reflexil.Handlers.ModuleDefinitionHandler
Reflexil.Handlers.NotSupportedHandler
My.Resources.Resources
Reflexil.Utils.CecilHelper
Reflexil.Utils.EReflectorImages
Reflexil.Utils.ReflexilPackage
Reflexil.Wrappers.IWrapper`1
Reflexil.Wrappers.InstructionWrapper
Reflexil.Wrappers.OperandDisplayHelper
Reflexil.Wrappers.ParameterWrapper
Reflexil.Wrappers.VariableWrapper

I'm referencing two extra assemblies (Reflector.exe, Mono.Cecil.dll)

Any ideas about this?