XML serialization and MS/Mono portability
- by Luca
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?