无法连接到的net.tcp:连接尝试持续的时间跨度 [英] Could not connect to net.tcp: The connection attempt lasted for a time span

查看:1521
本文介绍了无法连接到的net.tcp:连接尝试持续的时间跨度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在远程构建计算机,我收到以下错误,当我跑我的单元测试。

On remote build machine, I get the following error when I run my unit test.

试验方法MyNameSpace1.MyNameSpace2.Service.Test.MyPath。 XYZServiceTest.FindRecord抛出异常:
System.ServiceModel.EndpointNotFoundException:无法连接到的net.tcp://localhost/MyABCServices/XYZService.svc。连接尝试持续了00一个时间跨度:00:02.0086605。 TCP错误代码10061:无连接可以作出,因为目标机器积极地拒绝它127.0.0.1:808。 ---> System.Net.Sockets.SocketException:无连接可以作出,因为目标机器积极地拒绝它127.0.0.1:808

我有非常有限访问此构建机器。我没有访问构建机器上的IIS或像我在我的本地dev的机器上做服务。单元测试我的本地开发机器上工作,但他们运行出错生成计算机上上面提到的。

I have very limited access to this build machine. I do not have access to iis on build machine or the services like I do on my local dev machine. The unit tests work on my local dev machine but they run in to error mentioned above on build machine.

我能做些什么来调试这个错误?我已阅读之类的东西检查防火墙等,但我不知道该怎么做?我不能检查,如果该服务的窗口服务,并构建机器上运行。我试图登录到构建机器或我的IIS连接到该远程计算机,但我不能。

What can I do to debug this error? I have read things like check the fire wall etc. But I do not know how to do that? I can not check if the windows service for this service is up and running on the build machine. I tried to log into the build machine or connect my IIS to this remote machine but I could not.

推荐答案

对我来说,最常见的问题是Windows服务的net.tcp侦听器适配器未托管的机器上运行。

The most common problem for me is the Windows Service Net.Tcp Listener Adapter is not running on the hosting machine.

另外,请检查您的IIS Web应用程序,以确保启用的协议包括的net.tcp。例如该矿拥有的http的net.tcp,并在我的绑定我的http::94:,的net.tcp:194:

Also check your IIS Web Application to ensure Enabled Protocols includes net.tcp. For instance mine has "http,net.tcp" and in my bindings I have "http::94:,net.tcp:194:"

我不知道有什么好办法来远程检查正确配置IIS或Windows服务运行。你没有一个服务器管理员,可以看看这些值吗?

I don't know of any good way to remotely check that IIS is configured correctly or the Windows Service is running. Do you not have a server admin that can look at these values for you?

这篇关于无法连接到的net.tcp:连接尝试持续的时间跨度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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