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

error acquiring .net #2056

Open
demobugcy opened this issue Nov 27, 2024 · 1 comment
Open

error acquiring .net #2056

demobugcy opened this issue Nov 27, 2024 · 1 comment
Labels
needs more info Further information is requested untriaged

Comments

@demobugcy
Copy link

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

@nagilson
Copy link
Member

nagilson commented Jan 6, 2025

Sorry for the delay. Try to download a new .net 8 SDK (using the extension and or the installer) and tell me if it works. You have an RC version which will cause some problems.

@nagilson nagilson added the needs more info Further information is requested label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info Further information is requested untriaged
Projects
None yet
Development

No branches or pull requests

2 participants