question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:23 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
natemcmastercommented, Jul 27, 2018

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.

1reaction
ericjonesborocommented, Nov 5, 2021

7005 s main st apt10

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet-install.ps1 fails to download aspnetcore runtime with ...
Steps to reproduce. Run the dotnet-install.ps1 posh script for aspnetcore with default Channel and Version params
Read more >
Install .NET on Windows
In this article, you'll learn how to install .NET on Windows. .NET is made up of the runtime and the SDK. The runtime...
Read more >
Build/Helpers/dotnet-install.ps1 0.5.0-beta010
Default : LTS Download from the Channel specified. ... Installs just the shared runtime bits, not the entire SDK. ... aspnetcore - the...
Read more >
Nano Server 2016 - how to install .net core 2.0 sdk?
.PARAMETER Channel Default: LTS Download from the Channel specified. ... { Write-Output "dotnet-install: $str" } function Say-Verbose($str) ...
Read more >
[SOLVED] Need help with .net install with powershell.
I get the the following error, am I doing something wrong? Command. dotnet-install.ps1 -Architecture x64 -Channel production -Version 3.1.2.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found