Repository navigation
Description
I am trying to install dotnet core on Windows Server 2016 by following instructions in:
https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script
and it failed.
PS C:\scripts> ./dotnet-install.ps1 -Channel 2.1 -Version latest
dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.804/dotnet-sdk-2.1.804-win-x64.zip
dotnet-install: Cannot download: https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.804/dotnet-sdk-2.1.804-win-x64.zip
dotnet-install: Downloading legacy link: https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.804/dotnet-dev-win-x64.2.1.804.z
ip
Exception calling "Invoke" with "0" argument(s): "Failed to download
https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.804/dotnet-dev-win-x64.2.1.804.zip."
At C:\opt\framework\dotnet-install.ps1:110 char:20
-
return $ScriptBlock.Invoke() -
~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
- FullyQualifiedErrorId : RuntimeException
PS C:\scripts> ./dotnet-install.ps1 --channel LTS
dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/LTS/dotnet-sdk-LTS-win-x64.zip
dotnet-install: Cannot download: https://dotnetcli.azureedge.net/dotnet/Sdk/LTS/dotnet-sdk-LTS-win-x64.zip
dotnet-install: Downloading legacy link: https://dotnetcli.azureedge.net/dotnet/Sdk/LTS/dotnet-dev-win-x64.LTS.zip
Exception calling "Invoke" with "0" argument(s): "Failed to download
https://dotnetcli.azureedge.net/dotnet/Sdk/LTS/dotnet-dev-win-x64.LTS.zip."
At C:\opt\framework\dotnet-install.ps1:110 char:20
-
return $ScriptBlock.Invoke() -
~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
- FullyQualifiedErrorId : RuntimeException
Activity
donJoseLuis commentedon May 25, 2020
@joeloff hello. Can you please let us know your progress on this one? We're triaging open items & want to understand the remaining work.
israellot commentedon Jun 2, 2020
Facing this here as well.
AR-May commentedon Nov 17, 2020
Hello!
There is a typo in your second command, it is the reason it does not work. It should be
As for the first command, is the issue still reproducible?
AR-May commentedon Dec 3, 2020
Fixed swallowing the exception in the ScriptBlock, that results in meaningless error message "Exception calling invoke with 0 arguments". The initial problem does not reproduce on my machine, it might be a temporary problem with the storage. Feel free to reopen if the initial problem is still an issue.