我有两台机器host1
& host2
。host1
正在运行一个进程,通过以下两个服务与host2
上的进程通信:
net.tcp://host2:1000/Service1
net.tcp://host2:1001/Service2
当Service1
工作良好时,Service2
返回host1
上的错误
System.ServiceModel.EndpointNotFoundException: Could not connect to net.tcp://host2:1001/Service2...no connection could be made because the target machine actively refused it
在host1
,我做了telnet host2 1001
,它确实成功了。我也在这两台机器上尝试过netsh http show urlacl
,但是它没有包含关于我的服务的任何信息。
如何进一步调试此问题?有什么问题吗?
发布于 2022-07-26 02:04:20
有几种方法可以尝试:
替换端口1001。
https://stackoverflow.com/questions/73118630
复制