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

问题:

在做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

posted @ 2013-03-07 14:13  *凉风习习*  阅读(486)  评论(0编辑  收藏  举报