[Mono-dev] embedded mono and .NET 4.0 assemblies [peculiar error]

Jonathan Shore jonathan.shore at gmail.com
Fri Nov 4 14:32:58 EDT 2011


Hi,

I ran across a perplexing error when calling a C# method in one of my assemblies from C++: 

System.MissingMethodException: Method not found:	'System.Type.op_Equality'.

Searching google, it seems that the MonoTouch folks encounter this as well and the explanation is that MT is not yet fully .NET 4.0 compliant [http://comments.gmane.org/gmane.comp.gnome.mono.monotouch/1538].  I am using the 2.10.6 mono SDK on OS X and not using mono touch, however.

Is it the case that I cannot yet call into .NET 4.0 assemblies from C++ (i doubt)?  
Do I need to somehow tell the CLR to use the .NET 4.0 mscorlib when I call mono_domain_assembly_open()?

Note that I am not initializing mono_domain_assembly_open() with an exe, rather with a dll.  Perhaps there is some setup I need to do?

Also I am able to evaluate into the function until it needs to reference type equality.  The function I am evaluating is performing reflection.

Thanks

Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20111104/27608a4f/attachment.html 


More information about the Mono-devel-list mailing list