wcf 序列化参数 出错

vimson999 2007-11-22 03:00:49
There was an error while trying to serialize parameter http://tempuri.org/:obj. The InnerException message was 'Type 'Tim.WCFService.Contract.DataContract.hia' with data contract name 'hia:http://schemas.datacontract.org/2004/07/Tm.WCFService.Contract.DataContract' is not expected. Add any types not known
statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to DataContractSerializer.'. Please see InnerException for more details.

错误如上

大家有没有遇到过类似的问题,多谢了。
...全文
102 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

12,162

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧