使用WCF(客户端代理)编写的服务显示异常,因为处于关闭状态下的连接已关闭 [英] Our service written in WCF (Proxy on the client) is showing exception as under lying connection is closed

查看:43
本文介绍了使用WCF(客户端代理)编写的服务显示异常,因为处于关闭状态下的连接已关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个代理(客户端),并且Server不断显示错误消息server在关闭连接下处于关闭状态.我们检查了网络连接,一切看起来都很好,但是经常发生,并且有大约70个客户端连接到我们的 服务器.

We have a proxy (Client side) and Server we keep seeing error messages server under lying connection is closed . We checked the network connection and everything looks good but  happens on regular basis and we have some 70 clients connecting to our server. 


在代码上,我们处理异常,并在异常发生时使用重试连接.在服务器和客户端的配置文件中,我们都使用默认的绑定时间.

On the code we handle exceptions and use retry the connection when exception happens. On config file of both server and client we use default binding time.

请帮助我们避免代理和服务器出错.

Please help us how to avoid errors proxy and server .

推荐答案

您好,Seetha,

您是说70个客户端中只有特定一个抛出此错误,还是所有客户端都定期抛出此错误?

Do you mean only the specific one of 70 clients throw this error or all of clients throw this error regularly?

要检查详细的错误消息,建议您在客户端和服务端启用跟踪.

您可以参考下面的链接以获取更多信息.

#Configuring Tracing

https://msdn.microsoft.com/zh-CN/library/ms733025(v=vs.110).aspx

最好的问候

爱德华


这篇关于使用WCF(客户端代理)编写的服务显示异常,因为处于关闭状态下的连接已关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆