VS Test: No connection could be made because the target machine actively refused it 127.0.0.1:6910

本文介绍了解决在使用Visual Studio 2010进行Web测试和负载测试时遇到的连接错误的方法。通过调整TestAgent配置文件,成功解决了目标机器主动拒绝连接的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题:

在做web测试和负载测试时,突然所有的测试有例都不能用了。显示错误:No connection could be made because the target machine actively refused it 127.0.0.1:6910

环境:

Visual Studio 2010

Windows 2008 R2

TFS 2010

解决方案:

一开始以为是IIS的问题,经查原来是Test Agent设置的问题。

在‘C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\QTAgentService.exe.config’中加入以下设置即可:

<appSettings>
// other bits …
<add key="BindTo" value="Agent IP"/>
</appSettings>

 

参考:

http://blogs.blackmarble.co.uk/blogs/rfennell/post/2012/09/29/TFS-Test-Agent-cannot-connect-to-Test-Controller-gives-No-connection-could-be-made-because-the-target-machine-actively-refused-it-1270016910.aspx

http://msdn.microsoft.com/en-us/library/ff934571.aspx

转载于:https://www.cnblogs.com/stevenawake/archive/2013/03/07/2947957.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值