[MonoTouch] System.MissingMethodException: Method not found: 'System.Type.op_Equality'.

Rodrigo Kumpera kumpera at xamarin.com
Sat Oct 29 20:39:47 EDT 2011


This is caused by MonoTouch partial migration to the 4.0 profile. Right now
the BCL (core assemblies such as mscorlib and System)
sits in an uncomfortable middle of 2.0 and 4.0.

I've looked into migrating the remaining to 4.0, but it's and lot of tricky
work as it has a good change of breaking currently working apps.

It will be done as soon as we find it reasonable to expose customers to
such endurance.

The downside is that it does cause such inconveniences as you experience.
I'm sorry for it, but I hope you understand the why's of
where we are.

Even once this work is done, we'll probably not completely match 4.0 as
there's too much work left. The plan is to put energy behind
the PCL (Portable Class Library) which will enable portability across a
very wide range of targets.

As on how to handle it now, the easiest way is to do is follow the
suggestion already given here, recompile the library using MonoTouch
compiler.


On Thu, Oct 27, 2011 at 4:53 PM, jamminjimi <jamminjimi at gmail.com> wrote:

> Hi,
>
> I have similar problem as I interface to json.net. Perhaps some light can
> be
> shed??
>
> Current installed software:
> Monodevelop 2.8.1, Mono framework 2.10.6, Monotouch 5.0, Xcode 4.2, ios 5
> sdk, Json.NET 4.0 Release 3
>
> Thank you for taking a look!
> Jim
>
> Exception thrown:
>
> System.Threading.Tasks.Task.HandleGenericException
> (e={System.MissingMethodException: Method not found:
> 'System.Type.op_Equality'.
>  at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.GetContractSafe
> (System.Object value) [0x00008] in
>
> /Users/jamesphillips/Projects/Json40r3/Source/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalWriter.cs:86
>  at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize
> (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value) [0x00011] in
>
> /Users/jamesphillips/Projects/Json40r3/Source/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalWriter.cs:70
>  at Newtonsoft.Json.JsonSerializer.SerializeInternal
> (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value) [0x00012] in
>
> /Users/jamesphillips/Projects/Json40r3/Source/Src/Newtonsoft.Json/JsonSerializer.cs:451
>  at Newtonsoft.Json.JsonSerializer.Serialize (Newtonsoft.Json.JsonWriter
> jsonWriter, System.Object value) [0x00000] in
>
> /Users/jamesphillips/Projects/Json40r3/Source/Src/Newtonsoft.Json/JsonSerializer.cs:443
>  at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value,
> Formatting formatting, Newtonsoft.Json.JsonSerializerSettings settings)
> [0x0002c] in
>
> /Users/jamesphillips/Projects/Json40r3/Source/Src/Newtonsoft.Json/JsonConvert.cs:634
>  at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value)
> [0x00000] in
>
> /Users/jamesphillips/Projects/Json40r3/Source/Src/Newtonsoft.Json/JsonConvert.cs:571
>  at Storyboard_Utility_App.SerializeMe.LoadTheProduct () [0x0005d] in
> /Users/jamesphillips/Projects/Storyboard_Utility_App/SerializeMe.cs:47
>  at Storyboard_Utility_App.SerializeMe..ctor () [0x00006] in
> /Users/jamesphillips/Projects/Storyboard_Utility_App/SerializeMe.cs:35
>  at Storyboard_Utility_App.MainViewController.<ViewDidLoad>m__0 ()
> [0x00000] in
>
> /Users/jamesphillips/Projects/Storyboard_Utility_App/MainViewController.cs:38
>  at System.Threading.Tasks.TaskFactory+<StartNew>c__AnonStorey15.<>m__A
> (System.Object o) [0x00000] in
>
> /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/TaskFactory.cs:106
>  at System.Threading.Tasks.Task.InnerInvoke () [0x0000b] in
>
> /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/Task.cs:424
>  at System.Threading.Tasks.Task.ThreadStart () [0x00039] in
>
> /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/Task.cs:384
> }) in
>
> /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/Task.cs:474
>
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/System-MissingMethodException-Method-not-found-System-Type-op-Equality-tp3770750p3945599.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111029/56e56e73/attachment.html 


More information about the MonoTouch mailing list