ws中声明一个带DataTable类型参数的方法,有错!!!

我的方法如下:
[WebMethod]
public string DXQF(string orgmobile,DataTable mobiles,string content)
{

..................
}

调试页面报错:类型 System.ComponentModel.ISite 的成员 System.ComponentModel.MarshalByValueComponent.Site 是接口,因此无法将其序列化。

请问这是怎么回事?怎样解决?
---------------------------------------------------------------

PRB: 使用返回 DataTable 的 XML Web 服务时出现问题
http://support.microsoft.com/default.aspx?scid=306134
---------------------------------------------------------------

DataSet应该不能被序列化的吧?

Published At
Categories with Web编程
Tagged with
comments powered by Disqus