dotnet / dotnet/vscode-dotnet-runtime

error acquiring .net

Open
#2,056 2 comments 0 reactions 0 assignees View on GitHub
needs more info untriaged
Dominant language
TypeScript
Stars
209
Forks
455
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug.

Sorry, I'm a lousy programmer and I can't find a solution through search engines

I use vscode to write my webapi project. Yesterday, I was able to get code prompts. But today, it doesn't work for some reason. I don't know why. I restarted vscode but it still doesn't work.

I found the following content in the output, but I can access https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/releases-index.json through the browser

>Error : (WebRequestError)
Failed to download .NET undefined:
TIMEOUT: The request to https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/releases-index.json timed out at 600000 ms. This only occurs if your internet
or the url are experiencing connection difficulties; not if the server is being slow to respond. Check your connection, the url, and or increase the timeout value here: https://github.com/dotnet/vscode-dotnet-runtime/blob/main/Documentation/troubleshooting-runtime.md#install-script-timeouts
Error : (WebRequestError)
Failed to download .NET undefined:
TIMEOUT: The request to https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/releases-index.json timed out at 600000 ms. This only occurs if your internet
or the url are experiencing connection difficulties; not if the server is being slow to respond. Check your connection, the url, and or increase the timeout value here: https://github.com/dotnet/vscode-dotnet-runtime/blob/main/Documentation/troubleshooting-runtime.md#install-script-timeouts
Error : (WebRequestError)
Failed to download .NET undefined:
TIMEOUT: The request to https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/releases-index.json timed out at 600000 ms. This only occurs if your internet
or the url are experiencing connection difficulties; not if the server is being slow to respond. Check your connection, the url, and or increase the timeout value here: https://github.com/dotnet/vscode-dotnet-runtime/blob/main/Documentation/troubleshooting-runtime.md#install-script-timeouts

My environment is as follows
vscode
>版本: 1.92.2 (user setup)
提交: fee1edb8d6d72a0ddff41e5f71a671c23ed924b9
日期: 2024-08-14T17:29:30.058Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.19045

dotnet sdk
>C:\Users\Demo>dotnet --list-sdks
7.0.401 [C:\Program Files\dotnet\sdk]
8.0.100-rc.1.23463.5 [C:\Program Files\dotnet\sdk]

What I have tried

I configured the settings.json of the .NET Install Tool, but it didn't work.
> "dotnetAcquisitionExtension.existingDotnetPath": [
{
"extensionId": "ms-dotnettools.csharp",
"path": "C:\\Program Files\\dotnet\\dotnet.exe"
}
],

In addition, I tried to uninstall the C# code writing plug-in provided by Microsoft's official website in vscode a long time ago. I found that it was effective, but it didn't work after a few days.

### Please attach log file(s) here if you have any.

The log file location should be copied to your clipboard if you came from VS Code.

### Reproduction Steps

Just like the bug in the details, this is my first time to raise an issue, I don't know the rules, please understand

### Expected Behavior

I hope it works fine, although I am currently using rider to write code

### Exceptions & Errors (if any)

_No response_

### .NET Install Tool Version

net 8

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

Windows

### VS Code Version

1.92.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.