09年发布的程序,一直没有问题,程序和配置都没有变动,在同一台主机上的服务端和客户端,不知为何客户端却报告错误,而在其他机器上的客户端可以正常链接到服务端,错误信息如下:System.ServiceModel.CommunicationException: 套接字连接已中止。这可能是由于处理消息时出错或远程主机超过接收超时或者潜在的网络资源问题导致的。本地套接字超时是“00:15:00”。 ---> System.Net.Sockets.SocketException: 远程主机强迫关闭了一个现有的连接。
在 System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
在 System.ServiceModel.Channels.SocketConnection.ReadCore(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, Boolean closing)
--- 内部异常堆栈跟踪的结尾 ---Server stack trace:
在 System.ServiceModel.Channels.SocketConnection.ReadCore(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, Boolean closing)
在 System.ServiceModel.Channels.SocketConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
在 System.ServiceModel.Channels.DelegatingConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
在 System.ServiceModel.Channels.SessionConnectionReader.Receive(TimeSpan timeout)
在 System.ServiceModel.Channels.SynchronizedMessageSource.Receive(TimeSpan timeout)
在 System.ServiceModel.Channels.FramingDuplexSessionChannel.Receive(TimeSpan timeout)
在 System.ServiceModel.Channels.FramingDuplexSessionChannel.TryReceive(TimeSpan timeout, Message& message)
在 System.ServiceModel.Dispatcher.DuplexChannelBinder.Request(Message message, TimeSpan timeout)
在 System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
在 System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)Exception rethrown at [0]:
在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
在 CDG.Credit.Surveillance.Interface.ITaskManager.QueryTask(Int32 cid, Int32 ctid, String taskType, Int32 state, String ip)
在 CDG.Credit.Surveillance.Client.TaskManagerClientProxy.QueryTask(Int32 cid, Int32 ctid, String taskType, Int32 state, String ip)
在 CDG.Transfer.WebTransfer.Service.Business.Batch.GetBatch(UserDetails user)
在 System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
在 System.ServiceModel.Channels.SocketConnection.ReadCore(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, Boolean closing)
--- 内部异常堆栈跟踪的结尾 ---Server stack trace:
在 System.ServiceModel.Channels.SocketConnection.ReadCore(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, Boolean closing)
在 System.ServiceModel.Channels.SocketConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
在 System.ServiceModel.Channels.DelegatingConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
在 System.ServiceModel.Channels.SessionConnectionReader.Receive(TimeSpan timeout)
在 System.ServiceModel.Channels.SynchronizedMessageSource.Receive(TimeSpan timeout)
在 System.ServiceModel.Channels.FramingDuplexSessionChannel.Receive(TimeSpan timeout)
在 System.ServiceModel.Channels.FramingDuplexSessionChannel.TryReceive(TimeSpan timeout, Message& message)
在 System.ServiceModel.Dispatcher.DuplexChannelBinder.Request(Message message, TimeSpan timeout)
在 System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
在 System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)Exception rethrown at [0]:
在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
在 CDG.Credit.Surveillance.Interface.ITaskManager.QueryTask(Int32 cid, Int32 ctid, String taskType, Int32 state, String ip)
在 CDG.Credit.Surveillance.Client.TaskManagerClientProxy.QueryTask(Int32 cid, Int32 ctid, String taskType, Int32 state, String ip)
在 CDG.Transfer.WebTransfer.Service.Business.Batch.GetBatch(UserDetails user)
解决方案 »
- 求助,如何数组拆分
- c# 接收带图片的邮件
- winforms的button怎么没有双击,和按下的事件呢?
- XP系统IE新窗口打开图片问题
- 在数据库中设定了用户名时 登录为什么不行 帮忙看一下
- 想用C#做一个网络机房管理软件!想请大家给点思路!
- 关于sql安全
- 谁能给个实时动态曲线图的源程序?谢谢
- 为了避免每次用 SqlDataReader.GetString(x) 前都做个 x代表的column是否为null的判定, 唯一的办法是不是只有把数据库里面的column都给
- 我的vs.net怎么不能创建project?
- Nhibernate 和 sybase 分页的问题
- C# 怎么取得指定文件夹下文件个数 和 所有文件大小
客户端和服务端在一台机器上的不能链接,不在一个机器上的却连上来了,汗死