You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Script fails to access the feed if TLS1.2 is not enabled #9
Reproduced on two machines, but not a 3rd. The machines can access the first link from the browser just fine, but has been failing since Thursday afternoon consistently via the powershell script.
I'm still seeing it on my build server.
Here's two screenshots running the exact same script. On one PC (top one) it fails, on the other (overlay) it succeeds:
Pinging that address resolves to the same IP, so that's not the issue.
Opening https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.201/dotnet-sdk-3.1.201-win-x64.zip in a browser on the build server works just fine. It's only when running this through the powershell script.
Activity
wli3 commentedon Apr 6, 2020
the fallback link is expected to fail. The problem is why the first url does not work. We should try to repro it first
dotMorten commentedon Apr 6, 2020
Reproduced on two machines, but not a 3rd. The machines can access the first link from the browser just fine, but has been failing since Thursday afternoon consistently via the powershell script.
wli3 commentedon Apr 7, 2020
@grinrag @donJoseLuis
donJoseLuis commentedon Apr 8, 2020
@bozturkMSFT heads up on script issue. Let's discuss in stand up.
maartenba commentedon Apr 8, 2020
Seeing the same here on my build agent in the Netherlands (Amsterdam). URL resolves properly in Belgium (Antwerp). Seems CDN related?
Edit: enabling TLS 1.2 in posh seems to do it.
donJoseLuis commentedon Apr 8, 2020
We're currently dealing with a high priority issue in the install script related to TLS & will shift focus to this immediately after.
bekir-ozturk commentedon Apr 20, 2020
We haven't been able to fix the issues with failing builds yet (which may also resolve this one). Please track the progress here: dotnet/sdk#11320
dotMorten commentedon May 13, 2020
I'm still seeing it on my build server.

Here's two screenshots running the exact same script. On one PC (top one) it fails, on the other (overlay) it succeeds:
Pinging that address resolves to the same IP, so that's not the issue.
Opening
https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.201/dotnet-sdk-3.1.201-win-x64.zipin a browser on the build server works just fine. It's only when running this through the powershell script.bekir-ozturk commentedon Jun 4, 2020
Hi @dotMorten,
Can you run this version with
-EnableTlsflag and let me know if it fixes the issue?3 remaining items
bekir-ozturk commentedon Jun 4, 2020
@dotMorten Glad to hear! Can you tell me your OS and PowerShell versions?
dotMorten commentedon Jun 4, 2020
dotMorten commentedon Jun 4, 2020
...I guess we could push for our build servers to get updated, but glad it looks like we've pinpointed the issue
[-]Cannot download 3.1.100 SDK from install script[/-][+]Script fails to access the feed if TLS1.2 is not enabled[/+]bekir-ozturk commentedon Oct 5, 2020
@AR-May Let's print out a warning at the beginning that says TLS1.2 is required.
vlada-shubina commentedon Nov 6, 2020
We agreed to put the note about TLS 1.2 in case download fails.
Note should be similar too: "Ensure that TLS 1.2 or higher is enabled to use this script".
Probably we can also reference https://docs.microsoft.com/en-us/dotnet/framework/network-programming/tls#support-for-tls-12 or https://docs.microsoft.com/en-us/windows-server/security/tls/tls-registry-settings to explain how to enable it.
Should be done after or together with #27.
abrathehuman commentedon Nov 10, 2020
Just want to mention what saved my whole day solving this issue. This is just a temporary solution though. Hope it helps.
https://stackoverflow.com/a/47682111/12943500
issue dotnet#27, issue dotnet#9: partial fix for exceptions' swallowing
Fix exceptions' swallowing (#106)
AR-May commentedon Dec 3, 2020
As agreed, added a message about TLS 1.2 when it is a reason of a download failure.