silverlight中使用web服务,运行一段时间后总返回NoFound
远程服务器返回了错误: NotFound。
在web服务中有一个函数返回string类型的字符串,
每隔1分钟执行一次.
会是什么原因造成的呢
[解决办法]
http://blog.csdn.net/luminji/archive/2010/02/02/5279695.aspx
[解决办法]
应该是链接数过大导致的,通常瓶颈在
你的webservice的数据库链接没有close和dispose
[解决办法]
JiuYangService.ShipsServiceSoapClient client = new ExampleControl.JiuYangService.ShipsServiceSoapClient();client.GetShipsByScreenRangeCompleted -= new EventHandler<JiuYangService.GetShipsByScreenRangeCompletedEventArgs>(client_GetShipsByScreenRangeCompleted); client.GetShipsByScreenRangeCompleted += new EventHandler<JiuYangService.GetShipsByScreenRangeCompletedEventArgs>(client_GetShipsByScreenRangeCompleted); client.GetShipsByScreenRangeAsync(rec.Top, rec.Bottom, rec.Left, rec.Right);