Skip to content
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

Install Scripts Failure - [NETE2ESDK] Installing .NET 9.0-aspnetcore runtime failed with "No internet connection detected: Cannot install .NET " #1850

Open
v-xiaofchen opened this issue Jun 25, 2024 · 11 comments · Fixed by #1991

Comments

@v-xiaofchen
Copy link

v-xiaofchen commented Jun 25, 2024

Describe the bug.

Installing .NET 2.0-aspnetcore runtime failed with "No internet connection detected: Cannot install .NET "

Reproduction Steps

1.Run the 'Sample: Acquire ASPNET runtime' or 'Sample: Acquire all 2.X ASPNET Runtimes Concurrent' command. You should be asked to enter a Major. Minor version, please enter 2.0.
2.observe the output

Expected Behavior

.NET 2.0-aspnetcore runtime installed successfully

Exceptions & Errors (if any)

Installing .NET 2.0-aspnetcore runtime failed with "No internet connection detected: Cannot install .NET "
Sample: Acquire ASPNET runtime:
image
Sample: Acquire all 2.X ASPNET Runtimes Concurrent:
image

.NET Install Tool Version

dotnet-install-tool-2.0.7

Your operating system? Please provide more detail, such as the version and or distro above.

N/A

VS Code Version

1.90.2

@v-xiaofchen
Copy link
Author

This issue also repro on .NET 9.0-aspnetcore runtime
image

@nagilson
Copy link
Member

This is a good catch, thank you. The problem is that the server which hosts these files no longer has 2.0.9 on it, so it fails. The message should be improved, but its not an issue that this is no longer available via this method. For preview 5, I also think this is more of a server side issue not with this product.

Not a release blocker, leaving this open to fix offline message.

@nagilson nagilson changed the title [NETE2ESDK] Installing .NET 2.0-aspnetcore runtime failed with "No internet connection detected: Cannot install .NET " Improve Offline Message - [NETE2ESDK] Installing .NET 2.0-aspnetcore runtime failed with "No internet connection detected: Cannot install .NET " Jun 25, 2024
@nagilson nagilson added the P2 label Jun 25, 2024
@nagilson
Copy link
Member

nagilson commented Aug 5, 2024

This should be improved with a correct error message in the pending release

@v-xiaofchen
Copy link
Author

On dotnet-install-tool-2.1.2, the error message is displayed as " .NET install time out ".
image

@nagilson
Copy link
Member

nagilson commented Aug 19, 2024

I think this is because 2.0.9 of aspnet does not exist anymore... this is the behavior I would expect now if the version does not exist.

@v-xiaofchen
Copy link
Author

@nagilson
The same behavior is also seen when getting the 9.0 ASPNET runtime,is this expected as well?
Image

@nagilson nagilson reopened this Oct 18, 2024
@nagilson
Copy link
Member

nagilson commented Oct 18, 2024

Does it happen with 8.0? That is not expected. It looks like only 9 is broken

With 2.0 it is expected because that version doesn't really exist on the server anymore.

@nagilson
Copy link
Member

nagilson commented Oct 18, 2024

it happens on 9.0 but not 8.0 or 7.0, its probably because of the prerelease tag jargon at the end of the version

@nagilson
Copy link
Member

At C:\Users\user\.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-2.2.1\dist\install 
scripts\dotnet-install.ps1:1330 char:5
+     throw "Could not find `"$assetName`" with version = $($DownloadLi ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Could not find ...on .NET support:String) [], RuntimeException
    + FullyQualifiedErrorId : Could not find "ASP.NET Core Runtime" with version = 9.0.0-rc.2.24473.5
Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET support
 

@dotnet/install-scripts-maintainers @dotnet/install-scripts-admin Is this a known issue with installing the 9.0 rc builds? Do we need to set some sort of flag?

 VERBOSE: dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where:
VERBOSE: dotnet-install: - The SDK needs to be installed without user interaction and without admin rights.
VERBOSE: dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs.
VERBOSE: dotnet-install: To set up a development environment or to run apps, use installers rather than this script. 
Visit https://dotnet.microsoft.com/download to get the installer.
VERBOSE: dotnet-install: Get-CLIArchitecture-From-Architecture -Architecture "x64"
VERBOSE: dotnet-install: Get-NormalizedQuality -Quality ""
VERBOSE: dotnet-install: Normalized quality: ''
VERBOSE: dotnet-install: Get-NormalizedChannel -Channel "LTS"
VERBOSE: dotnet-install: Normalized channel: 'LTS'
VERBOSE: dotnet-install: Get-NormalizedProduct -Runtime "aspnetcore"
VERBOSE: dotnet-install: Normalized product: 'aspnetcore-runtime'
VERBOSE: dotnet-install: ⏱ Action 'Product discovery' took 0.1757601 seconds
VERBOSE: dotnet-install: Resolve-Installation-Path -InstallDir 
"c:\Users\\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\9.0.0-rc.2.24
473.5~x64~aspnetcore"
VERBOSE: dotnet-install: InstallRoot: 
c:\Users\\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\9.0.0-rc.2.244
73.5~x64~aspnetcore
VERBOSE: dotnet-install: Get-Specific-Version-From-Version -AzureFeed "https://dotnetcli.azureedge.net/dotnet" -Channel
 "LTS" -Version "9.0.0-rc.2.24473.5" -JSonFile ""
VERBOSE: dotnet-install: Get-Download-Link -AzureFeed "https://dotnetcli.azureedge.net/dotnet" -SpecificVersion 
"9.0.0-rc.2.24473.5" -CLIArchitecture "x64"
VERBOSE: dotnet-install: Get-Product-Version -AzureFeed "https://dotnetcli.azureedge.net/dotnet" -SpecificVersion 
"9.0.0-rc.2.24473.5"
VERBOSE: dotnet-install: Get-Product-Version-Url -Flattened "True" -AzureFeed "https://dotnetcli.azureedge.net/dotnet" 
-SpecificVersion "9.0.0-rc.2.24473.5" -PackageDownloadLink ""

@nagilson nagilson changed the title Improve Offline Message - [NETE2ESDK] Installing .NET 2.0-aspnetcore runtime failed with "No internet connection detected: Cannot install .NET " Install Scripts Failure - [NETE2ESDK] Installing .NET 2.0-aspnetcore runtime failed with "No internet connection detected: Cannot install .NET " Oct 18, 2024
@nagilson nagilson changed the title Install Scripts Failure - [NETE2ESDK] Installing .NET 2.0-aspnetcore runtime failed with "No internet connection detected: Cannot install .NET " Install Scripts Failure - [NETE2ESDK] Installing .NET 9.0-aspnetcore runtime failed with "No internet connection detected: Cannot install .NET " Oct 18, 2024
@JanProvaznik
Copy link

According to https://dotnet.microsoft.com/en-us/download/dotnet/9.0 the ASP.NET runtime has the version 9.0.0-rc.2.24474.3 not 9.0.0-rc.2.24473.5

@nagilson
Copy link
Member

nagilson commented Oct 21, 2024

Thanks @JanProvaznik. @rbhanda Do the older builds of RC 9 get removed from the dotnet hosting servers? Or any chance the releases.json would become out of date for these builds?

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

Successfully merging a pull request may close this issue.

3 participants