-
Notifications
You must be signed in to change notification settings - Fork 6
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
Labels
Comments
jherby2k
changed the title
WebException running net48 tests under Visual Studio
WebException running net48 tests
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
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
The text was updated successfully, but these errors were encountered: