在TFS2015 update2 vNext构建配置中发送请求时发生错误 [英] An error occurred while sending the request in TFS2015 update2 vNext build configuration

查看:114
本文介绍了在TFS2015 update2 vNext构建配置中发送请求时发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在配置TFS vNext构建代理时,出现错误:

While configuring a TFS vNext build agent i am getting the error:

ErrorConnectingToTheServer 发送请求时发生错误.请求.

ErrorConnectingToTheServer An error occurred while sending the request. the request.

我在事件日志或其他任何地方都找不到其他错误消息.

I could not find any other error message in the event log or anywhere else.

请帮助.

更新1:SSL(https///tfs)不起作用.但是普通的http://起作用.

Update1: The SSL (https///tfs) did not work.but the plain http:// worked.

更新2:我已经删除了旧的代理,并尝试配置新的代理.在执行此操作时,我收到了_diag文件夹中出现的以下错误:

Update 2: I have removed the old agents and trying to configure new one. While doing that i am getting the below error that is present in the _diag folder:

System.Net.WebException:基础连接已关闭:发送时发生意外错误. ---> System.IO.IOException:无法从传输连接中读取数据:现有连接被远程主机强行关闭. ---> System.Net.Sockets.SocketException:现有的连接被远程主机强行关闭 .... System.Net.WebException:基础连接已关闭:发送时发生意外错误. ---> System.IO.IOException:无法从传输连接中读取数据:现有连接被远程主机强行关闭. ---> System.Net.Sockets.SocketException:现有的连接被远程主机强行关闭 .... System.IO.IOException:无法从传输连接中读取数据:现有连接被远程主机强行关闭. ---> System.Net.Sockets.SocketException:现有的连接被远程主机强行关闭 .... System.Net.Sockets.SocketException(0x80004005):现有连接被远程主机强行关闭

System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host .... System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host .... System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host .... System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host

更新3: 我有两个服务器,如下所示: 1是应用程序服务器,其他是SharePoint和报表服务器,试图在第3个服务器中配置内部版本. TFS URL已配置为SSL443.

Update 3: I have two servers as below: 1 is application server and other is SharePoint and reporting server trying to configure the build in 3rd server. TFS URL is configured with SSL 443.

如果我尝试使用 http://tfs 服务器/tfs配置代理,则它会成功,但是在构建时会收到错误. 当我尝试使用https进行配置时,出现上述错误.有趣的是,我曾将该服务器用于两个代理,在那种情况下,我又有一个服务器,在该错误中我可以正常工作.

If I try to configure the agent using http://tfs server/tfs it succeeds, but receives error while building. When i try to configure using https i get the above error. Interestingly I had used this server for two agents, and in that case i had one more server where i am getting the error was working properly.

推荐答案

我终于找到了解决该问题的方法:

I finally found the solution to the issue:

根本原因: TFS vNext代理使用.Net Framework 4.5 ...,默认情况下不支持TLS 1.1/TLS 1.2.

Root cause: TFS vNext agents use .Net framework 4.5... which by default does not support TLS 1.1/ TLS 1.2.

解决方案: 我们需要修改.Net Framework注册表项,以指示.Net Framework使用TLS 1.2. 使用命令更新注册表:

Solution: We need to modify .Net framework registry entry to direct .Net framework to use TLS 1.2. Use the command to update the registry:

reg add HKLM\SOFTWARE\Microsoft\.NETFramework\v4.0.30319 /v SchUseStrongCrypto /t REG_DWORD /d 1 /reg:64 (and/or /reg:32)

此处引荐:

https://stackoverflow.com/a/28502562/2939996

这篇关于在TFS2015 update2 vNext构建配置中发送请求时发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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