c# winform调用webservice出错
winform调用webservice,每次线程休眠100毫秒,大概到200多次的时候报错,大家看看是什么问题?
有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。
************** 异常文本 **************
System.Net.WebException: 基础连接已经关闭: 连接被意外关闭。
在 System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
在 System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
在 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
在 SENDMESSAGE.cn.ywsunbu.www.SENDSMS.SendSMSone(String mobile, String content) 位置 H:\net\SENDMESSAGE\SENDMESSAGE\Web References\cn.ywsunbu.www\Reference.cs:行号 114
在 SENDMESSAGE.Form1.sendtxt() 位置 H:\net\SENDMESSAGE\SENDMESSAGE\Form1.cs:行号 63
在 SENDMESSAGE.Form1.button2_Click(Object sender, EventArgs e) 位置 H:\net\SENDMESSAGE\SENDMESSAGE\Form1.cs:行号 37
在 System.Windows.Forms.Control.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
在 System.Windows.Forms.Button.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)