【发布时间】:2020-03-28 23:13:47
【问题描述】:
我在服务器中安装了 Windows 服务(IP:10.60.8.27,端口 7002)。尝试从托管在另一台服务器 (10.60.8.28) 中的 WCF 服务进行连接时,会出现以下错误。此错误偶尔会发生。当我重新启动 Windows 服务时,它运行良好。我该如何解决这个问题?我的服务器是(Windows Server 2012 R2)。
错误是:
Could not connect to net.tcp://10.60.8.27:7002/MyService. The connection attempt lasted for a time span of 00:00:01.0156241. TCP error code 10061: No connection could be made because the target machine actively refused it 10.60.8.27:7002.
【问题讨论】:
标签: c# wcf windows-services