sdk: dotnet-install.ps1 fails to download aspnetcore runtime with default channel

Steps to reproduce

Run the dotnet-install.ps1 posh script for aspnetcore with default Channel and Version params dotnet-install.ps1 -Architecture "x64" -Runtime aspnetcore -NoPath -Verbose

Also tried specifying Channel as “2.0” and “2.1”, which did not work as well. dotnet-install.ps1 -Channel "2.0" -Architecture "x64" -Runtime aspnetcore -NoPath -Verbose dotnet-install.ps1 -Channel "2.1" -Architecture "x64" -Runtime aspnetcore -NoPath -Verbose

Are the Channels documented somewhere? Without knowing the structure of the dotnetcli.blob.core.windows.net Storage Account, it is impossible to know what values are valid for this parameter.

Expected behavior

The ASP.NET Core runtime is installed in the default directory. For example, %LocalAppData%\Microsoft\dotnet

Actual behavior

Script throws the following errors:

Exception calling "Invoke" with "0" argument(s): "Failed to download https://dotnetcli.blob.core.windows.net/dotnet/aspnetcore/Runtime/LTS/latest.version. StatusCode: 404, ReasonPhrase: 'The specified blob does not exist.', Version: 1.1, Content: System.Net.Http.StreamContent, Headers: { x-ms-request-id: 42fa8ab8-701e-010a-346b-eef717000000 x-ms-version: 2009-09-19 Date: Fri, 18 May 2018 05:47:04 GMT Server: Windows-Azure-Blob/1.0 Server: Microsoft-HTTPAPI/2.0 Content-Length: 215 Content-Type: application/xml }" At D:\Users\gzadmin\Desktop\dotnet-install.ps1:129 char:20

Exception calling "Invoke" with "0" argument(s): "Failed to download https://dotnetcli.blob.core.windows.net/dotnet/aspnetcore/Runtime/2.0/latest.version. StatusCode: 404, ReasonPhrase: 'The specified blob does not exist.', Version: 1.1, Content: System.Net.Http.StreamContent, Headers: { x-ms-request-id: 42f9d99e-701e-010a-376b-eef717000000 x-ms-version: 2009-09-19 Date: Fri, 18 May 2018 05:45:36 GMT Server: Windows-Azure-Blob/1.0 Server: Microsoft-HTTPAPI/2.0 Content-Length: 215 Content-Type: application/xml }" At D:\Users\gzadmin\Desktop\dotnet-install.ps1:129 char:20

Exception calling "Invoke" with "0" argument(s): "Failed to download https://dotnetcli.blob.core.windows.net/dotnet/aspnetcore/Runtime/2.1/latest.version. StatusCode: 404, ReasonPhrase: 'The specified blob does not exist.', Version: 1.1, Content: System.Net.Http.StreamContent, Headers: { x-ms-request-id: 42fa4298-701e-010a-7c6b-eef717000000 x-ms-version: 2009-09-19 Date: Fri, 18 May 2018 05:46:27 GMT Server: Windows-Azure-Blob/1.0 Server: Microsoft-HTTPAPI/2.0 Content-Length: 215 Content-Type: application/xml }" At D:\Users\gzadmin\Desktop\dotnet-install.ps1:129 char:20

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 23 (11 by maintainers)

Most upvoted comments

We haven’t implemented stable channels yet for dotnet-install and the aspnetcre runtime. I’ve opened https://github.com/aspnet/Universe/issues/1283 to follow up on this.

7005 s main st apt10

Hey @natemcmaster, now the 2.1 is RTM, shouldn’t the following command work?

dotnet-install -Channel 2.1 -Architecture "x64" -Runtime aspnetcore -NoPath -Verbose

It throws the error: Failed to download https://dotnetcli.blob.core.windows.net/dotnet/aspnetcore/Runtime/2.1/latest.version. StatusCode: 404, ReasonPhrase: ‘The specified blob does not exist.’