An error occurred while sending the request in TFS2015 update2 vNext build configuration

六月ゝ 毕业季﹏ 提交于 2019-12-04 13:55:08
Angshuman

I finally found the solution to the issue:

Root cause: TFS vNext agents use .Net framework 4.5... which by default does not support TLS 1.1/ 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)

Referred here:

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

If next time you have encountered some issues during the build agent configuration. For trouble shooting you could check related configuration logs. To see what was going on, you just go to the folder where the agent was installed. In that folder, a _diag folder exists with logging.

The “ServerUrl” setting of agent listed the default URL for TFS. Which default is HTTP on port 8080. According to your update, if you have changed your configuration to run on HTTPS. So, your TFS was not at 8080, but some others such as 443. And you or other co-workers configured the build agent before changed to HTTPS.

If so, you may need to update the “settings.json” file in the build agent folder and replace the old URL with the new one. After changing this file, restart the build agent service, then go back to the Agent Pools, refresh the page.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!