Skip to content

dotnet-install fails with Exception calling invoke with 0 arguments #8

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

Closed
kathenn opened this issue Apr 10, 2020 · 4 comments
Closed
Assignees
Labels
bug Something isn't working maintenance-mode-prerequisite Maintenance mode prerequisites triaged

Comments

@kathenn
Copy link

kathenn commented Apr 10, 2020

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
@bekir-ozturk bekir-ozturk transferred this issue from dotnet/sdk May 19, 2020
@donJoseLuis donJoseLuis added triaged bug Something isn't working labels May 25, 2020
@donJoseLuis
Copy link
Contributor

@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
Copy link

Facing this here as well.

@AR-May AR-May added the maintenance-mode-prerequisite Maintenance mode prerequisites label Nov 6, 2020
@AR-May AR-May self-assigned this Nov 17, 2020
@AR-May
Copy link
Member

AR-May commented Nov 17, 2020

Hello!

There is a typo in your second command, it is the reason it does not work. It should be

./dotnet-install.ps1 -Channel LTS

As for the first command, is the issue still reproducible?

@AR-May
Copy link
Member

AR-May commented 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.

@AR-May AR-May closed this as completed Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working maintenance-mode-prerequisite Maintenance mode prerequisites triaged
Projects
None yet
Development

No branches or pull requests

5 participants