<pre>异常详细信息: System.InvalidOperationException: System.Xml.Linq.XDeclaration 无法序列化,因为它没有无参数的构造函数。 </pre>
2 回答

呼唤远方
TA贡献1856条经验 获得超11个赞
你返回的是xml的吗?如果是在webservice方面上面加上这句设置返回数据格式 [ScriptMethod(ResponseFormat = ResponseFormat.Xml)]
- 2 回答
- 0 关注
- 582 浏览
添加回答
举报
0/150
提交
取消