Mono“NetDataContractSerializer.Serialize”

发布于 2024-12-03 19:09:48 字数 1041 浏览 0 评论 0原文

出现以下异常

System.NotImplementedException: The requested feature is not implemented.
      at System.Runtime.Serialization.NetDataContractSerializer.WriteStartObject (System.Xml.XmlDictionaryWriter writer, System.Object graph) [0x00000] in <filename unknown>:0 
      at System.Runtime.Serialization.XmlObjectSerializer.WriteObject (System.Xml.XmlDictionaryWriter writer, System.Object graph) [0x00000] in <filename unknown>:0 
      at System.Runtime.Serialization.XmlObjectSerializer.WriteObject (System.Xml.XmlWriter writer, System.Object graph) [0x00000] in <filename unknown>:0 
      at System.Runtime.Serialization.NetDataContractSerializer.Serialize (System.IO.Stream stream, System.Object graph) [0x00000] in <filename unknown>:0 
      at BinaryAnalysis.Data.ContractContainer.ContractContainerEntity.SetValue (System.Object val) [0x00000] in <filename unknown>:0 

当我尝试使用 Mono 2.10.2-5 使用 NetDataContractSerializer 序列化我的 Pono 时, 。 没有有关 Mono 中这些类的路线图的信息。 有什么解决方法吗?

I'm getting following exception

System.NotImplementedException: The requested feature is not implemented.
      at System.Runtime.Serialization.NetDataContractSerializer.WriteStartObject (System.Xml.XmlDictionaryWriter writer, System.Object graph) [0x00000] in <filename unknown>:0 
      at System.Runtime.Serialization.XmlObjectSerializer.WriteObject (System.Xml.XmlDictionaryWriter writer, System.Object graph) [0x00000] in <filename unknown>:0 
      at System.Runtime.Serialization.XmlObjectSerializer.WriteObject (System.Xml.XmlWriter writer, System.Object graph) [0x00000] in <filename unknown>:0 
      at System.Runtime.Serialization.NetDataContractSerializer.Serialize (System.IO.Stream stream, System.Object graph) [0x00000] in <filename unknown>:0 
      at BinaryAnalysis.Data.ContractContainer.ContractContainerEntity.SetValue (System.Object val) [0x00000] in <filename unknown>:0 

When I try to serialize my Pono using NetDataContractSerializer using Mono 2.10.2-5.
There are no information about roadmap of theese classes in mono.
Any workarounds for that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文