Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebException running net48 tests #23

Open
jherby2k opened this issue Jun 4, 2020 · 1 comment
Open

WebException running net48 tests #23

jherby2k opened this issue Jun 4, 2020 · 1 comment
Assignees
Labels

Comments

@jherby2k
Copy link
Owner

jherby2k commented Jun 4, 2020

If extensions are not yet cached on the system when the net48 tests run, you may experience the following exception:

System.Net.WebException : The request was aborted: Could not create SSL/TLS secure channel.

This seems to be an TLS 1.3 issue with Visual Studio, as per NuGet/NuGetGallery#7705. It can be worked around by running the following commands to force a TLS downgrade:

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

@jherby2k jherby2k added the bug label Jun 4, 2020
@jherby2k jherby2k self-assigned this Jun 4, 2020
@jherby2k jherby2k changed the title WebException running net48 tests under Visual Studio WebException running net48 tests Jul 17, 2020
@jherby2k
Copy link
Owner Author

jherby2k commented Jul 17, 2020

I've encountered this now running tests from command-line as well. Still unsure of the cause, but its for legacy .NET Framework anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant