首页 新闻 会员 周边

求救(WebService 问题)

0
悬赏园豆:50 [已关闭问题] 关闭于 2008-10-27 13:48

是WinForm调用WebService.

在Vs2005中运行根本不会出现这问题,当用VS运行过程序之后的半天或一天也可能几个小时之内在运行编译的.exe程序也不会出现这中情况,但过一天先不用VS去编译运行,直接去运行编译过的.exe文件就会出现上面的错误信息。不知道是什么原因请高手帮忙。

 

问题补充: System.Net.WebException: 无法连接到远程服务器 ---> System.Net.Sockets.SocketException: 由于目标机器积极拒绝,无法连接。 在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) 在 System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) 在 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- 内部异常堆栈跟踪的结尾 --- 在 System.Net.HttpWebRequest.GetRequestStream() 在 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) 在 DSMT.Common.UILayer.WinForm.Login.WebLoginService.UserService.StaffLogin(BaseUserInfo userInfo, String userName, String password, String& statusCode, String& statusMessage) 位置 E:\考勤外包\DSMT.Common.UILayer.WinForms\DSMT.Common.UILayer.WinForm.Login\Web References\WebLoginService\Reference.cs:行号 301 在 DSMT.Common.UILayer.WinForm.Login.FrmLogin.Login() 位置 E:\考勤外包\DSMT.Common.UILayer.WinForms\DSMT.Common.UILayer.WinForm.Login\FrmLogin.cs:行号 249
佳明的主页 佳明 | 初学一级 | 园豆:150
提问于:2008-10-25 10:12
< >
分享
所有回答(2)
0

从调用堆栈看来是不是远程WebService关闭了.应该不是程序本身的问题.

Jerry Qian | 园豆:19 (初学一级) | 2008-10-25 15:15
0
RicoRui | 园豆:3663 (老鸟四级) | 2008-10-27 10:10
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册