BoolBySigma / UpdateAssemblyInfo

SORRY THIS IS NO LONGER MAINTAINED
10 stars 9 forks source link

The underlying connection was closed: An unexpected error occurred on a send. #35

Closed joecmajor closed 5 years ago

joecmajor commented 5 years ago

On-Premise instance of TFS18. Build Agent was working fine until security settings on TFS server were changed to allow only TLS 1.2. Now UpdateAssemblyInfo stops on start with error message: The underlying connection was closed: An unexpected error occurred on a send.

joecmajor commented 5 years ago

2018-12-07T09:18:24.6911142Z ##[section]Starting: Update Assembly: *AssemblyInfo.* 2018-12-07T09:18:24.6915625Z ============================================================================== 2018-12-07T09:18:24.6915806Z Task : Update Assembly Info 2018-12-07T09:18:24.6915927Z Description : Update assembly info of one or multiple projects 2018-12-07T09:18:24.6916524Z Version : 2.0.38 2018-12-07T09:18:24.6916636Z Author : Bool (by Sigma) 2018-12-07T09:18:24.6916781Z Help : Having Problems? Please create an issue on our Github and we will try to help you. 2018-12-07T09:18:24.6916941Z ============================================================================== 2018-12-07T09:18:26.1133468Z ##[error]The underlying connection was closed: An unexpected error occurred on a send. 2018-12-07T09:18:26.1493949Z ##[section]Finishing: Update Assembly: *AssemblyInfo.*

joecmajor commented 5 years ago

Fixed by adding registry keys.

reg add HKLM\SOFTWARE\Microsoft.NETFramework\v4.0.30319 /v SystemDefaultTlsVersions /t REG_DWORD /d 1 /f /reg:64 reg add HKLM\SOFTWARE\Microsoft.NETFramework\v4.0.30319 /v SystemDefaultTlsVersions /t REG_DWORD /d 1 /f /reg:32

https://developercommunity.visualstudio.com/content/problem/201457/unable-to-connect-to-github-due-to-tls-12-only-cha.html