连续调用webservice 同一个方法出错
连续调用 webservice 的同一个方法会出现这样的错误
[WebMethod]
public DataSet GetNewsByCid(string cid, int amount)
{
string sql = "";
if (GetNewsAmountByCid(cid) > amount)
{
sql = "select top " + amount + " * from news where (classid = " + cid + ")";
}
else
{
sql = "select * from news where (classid = " + cid + ")";
}
DataSet ds = database.GetDs(sql);
return ds;
}