C#のデータコントラクトシリアライザーによって生成された次のXMLが、Windowsでは正常に機能するのにLinux on Monoでは機能しない理由を誰かが知っていますか?
XML:
<Message i:type="UserMessage" xmlns="http://schemas.datacontract.org/2004/07/NetTunnel"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><type>UserMessage</type>
<nick>Unnamed</nick><services><Service><enabled>true</enabled><port_ranges i:nil="true"/>
<service_name>vent</service_name></Service></services><state>Created</state>
<userid>1</userid></Message>
エラー:
Unhandled Exception: System.Runtime.Serialization.SerializationException: Deserializing
type 'System.Object'. Expecting state 'EndElement'. Encountered state 'Element' with
name 'enabled' with namespace 'http://schemas.datacontract.org/2004/07/NetTunnel'.
リストされているサービスがない場合にもエラーが発生します(xmlタグ<services/>
)。services変数のタイプはList<Service>
。これはMonoでは処理できないタイプですか?別のタイプがより適切でしょうか?それともまったく別のものですか?