调用WebService时出的错误,该怎么解决
单独用WebService时没有错误,但在用户界面执行一个事件调用WebService时出现下列错误:
WebException: 基础连接已经关闭: 无法连接到远程服务器
[WebException: 基础连接已经关闭: 无法连接到远程服务器。]
System.Net.HttpWebRequest.CheckFinalStatus() +673
System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult) +75
System.Net.HttpWebRequest.GetRequestStream() +132
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +105
RingUI.RingService.RingService.UserLogin(String& uname, String uid, String upwd, String& ucode, String& urole, String& urecord) in C:\Inetpub\wwwroot\RingUI\Web References\RingService\Reference.cs:71
RingUI.Login.ImageButton1_Click(Object sender, ImageClickEventArgs e) in C:\Inetpub\wwwroot\RingUI\Login.aspx.cs:75
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +109
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +69
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277