XML serialization and MS/Mono portability

Posted by Luca on Stack Overflow See other posts from Stack Overflow or by Luca
Published on 2010-05-18T06:01:01Z Indexed on 2010/05/18 6:10 UTC
Read the original article Hit count: 237

Filed under:
|
|
|
|

I'm trying to have classes serialized using MS runtime and Mono runtime. While using MS runtime everything goes fine, but using Mono I give me some exception and program startup.

The following exception are thrown:

  • There was an error reflecting a type: System.TypeInitializationException (a class)
  • There was an error reflecting a type: System.InvalidOperationException (a class)
  • There was an error reflecting a field: System.ArgumentOutOfRangeException < 0 (an array of classes)

The binary was compiled using MS SDK, but I don't think this is the problem.

What's going on? .NET shouln't be portable? How to solve these exceptions?

© Stack Overflow or respective owner

Related posts about c#

Related posts about xml-serialization