Skip to content

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

Closed

Description

@kathenn

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

  1. transferred this issue fromdotnet/sdkon May 19, 2020
  2. donJoseLuis commented on May 25, 2020

    @donJoseLuis
    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.

  3. israellot commented on Jun 2, 2020

    @israellot

    Facing this here as well.

  4. self-assigned this
    on Nov 17, 2020
  5. AR-May commented on Nov 17, 2020

    @AR-May
    Member

    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?

  6. AR-May commented on Dec 3, 2020

    @AR-May
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions