Closed chrishocoop closed 3 weeks ago
it has never worked for me
Do you have the dotnetAcquisitionExtension.existingDotnetPath
setting configured in VSCode? If so, could you try removing it and relaunching the extension? See here for info on settings.
i have removed it and i am getting this error now An error occurred while installing .NET (8.0): .NET Acquisition Failed: .NET install timed out. You should change the timeout if you have a slow connection. See: https://github.com/dotnet/vscode-dotnet-runtime/blob/main/Documentation/troubleshooting-runtime.md#install-script-timeouts. Our CDN may be blocked in China or experience significant slowdown, in which case you should install .NET manually., MESSAGE: Command failed: powershell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy unrestricted -Command "& { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12; & 'c:\Users\user.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-2.1.5\dist\install scripts\dotnet-install.ps1' -InstallDir 'c:\Users\user\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\8.0.8~x64' -Version 8.0.8 -Verbose -Runtime dotnet -Architecture x64 }" dotnet-install: Downloading from "primary" link has failed with error: Uri: https://dotnetcli.azureedge.net/dotnet/Runtime/8.0.8/dotnet-runtime-8.0.8-win-x64.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "legacy" link has failed with error: Uri: https://dotnetcli.azureedge.net/dotnet/Runtime/8.0.8/dotnet-win-x64.8.0.8.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "primary" link has failed with error: Uri: https://dotnetbuilds.azureedge.net/public/Runtime/8.0.8/dotnet-runtime-8.0.8-win-x64.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "legacy" link has failed with error: Uri: https://dotnetbuilds.azureedge.net/public/Runtime/8.0.8/dotnet-win-x64.8.0.8.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443
dotnet-install: Downloading from "primary" link has failed with error: Uri: https://dotnetcli.azureedge.net/dotnet/Runtime/8.0.8/dotnet-runtime-8.0.8-win-x64.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "legacy" link has failed with error: Uri: https://dotnetcli.azureedge.net/dotnet/Runtime/8.0.8/dotnet-win-x64.8.0.8.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "primary" link has failed with error: Uri: https://dotnetbuilds.azureedge.net/public/Runtime/8.0.8/dotnet-runtime-8.0.8-win-x64.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "legacy" link has failed with error: Uri: https://dotnetbuilds.azureedge.net/public/Runtime/8.0.8/dotnet-win-x64.8.0.8.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443
dotnet-install: Downloading from "primary" link has failed with error: Uri: https://dotnetcli.azureedge.net/dotnet/Runtime/8.0.8/dotnet-runtime-8.0.8-win-x64.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "legacy" link has failed with error: Uri: https://dotnetcli.azureedge.net/dotnet/Runtime/8.0.8/dotnet-win-x64.8.0.8.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "primary" link has failed with error: Uri: https://dotnetbuilds.azureedge.net/public/Runtime/8.0.8/dotnet-runtime-8.0.8-win-x64.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "legacy" link has failed with error: Uri: https://dotnetbuilds.azureedge.net/public/Runtime/8.0.8/dotnet-win-x64.8.0.8.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443
dotnet-install: Downloading from "primary" link has failed with error: Uri: https://dotnetcli.azureedge.net/dotnet/Runtime/8.0.8/dotnet-runtime-8.0.8-win-x64.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "legacy" link has failed with error: Uri: https://dotnetcli.azureedge.net/dotnet/Runtime/8.0.8/dotnet-win-x64.8.0.8.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "primary" link has failed with error: Uri: https://dotnetbuilds.azureedge.net/public/Runtime/8.0.8/dotnet-runtime-8.0.8-win-x64.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "legacy" link has failed with error: Uri: https://dotnetbuilds.azureedge.net/public/Runtime/8.0.8/dotnet-win-x64.8.0.8.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443
Could not find ".NET Core Runtime" with version = 8.0.8 Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET support At C:\Users\user.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-2.1.5\dist\install scripts\dotnet-install.ps1:1330 char:5
"$assetName
" with version = $($DownloadLi ...
+ CategoryInfo : OperationStopped: (Could not find ...on .NET support:String) [], RuntimeException
+ FullyQualifiedErrorId : Could not find ".NET Core Runtime" with version = 8.0.8
Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET support
, CODE: 1, SIGNAL: null, Error: .NET install timed out. You should change the timeout if you have a slow connection. See: https://github.com/dotnet/vscode-dotnet-runtime/blob/main/Documentation/troubleshooting-runtime.md#install-script-timeouts. Our CDN may be blocked in China or experience significant slowdown, in which case you should install .NET manually., MESSAGE: Command failed: powershell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy unrestricted -Command "& { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12; & 'c:\Users\user.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-2.1.5\dist\install scripts\dotnet-install.ps1' -InstallDir 'c:\Users\user\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\8.0.8~x64' -Version 8.0.8 -Verbose -Runtime dotnet -Architecture x64 }" dotnet-install: Downloading from "primary" link has failed with error: Uri: https://dotnetcli.azureedge.net/dotnet/Runtime/8.0.8/dotnet-runtime-8.0.8-win-x64.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "legacy" link has failed with error: Uri: https://dotnetcli.azureedge.net/dotnet/Runtime/8.0.8/dotnet-win-x64.8.0.8.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "primary" link has failed with error: Uri: https://dotnetbuilds.azureedge.net/public/Runtime/8.0.8/dotnet-runtime-8.0.8-win-x64.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "legacy" link has failed with error: Uri: https://dotnetbuilds.azureedge.net/public/Runtime/8.0.8/dotnet-win-x64.8.0.8.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443
dotnet-install: Downloading from "primary" link has failed with error: Uri: https://dotnetcli.azureedge.net/dotnet/Runtime/8.0.8/dotnet-runtime-8.0.8-win-x64.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "legacy" link has failed with error: Uri: https://dotnetcli.azureedge.net/dotnet/Runtime/8.0.8/dotnet-win-x64.8.0.8.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "primary" link has failed with error: Uri: https://dotnetbuilds.azureedge.net/public/Runtime/8.0.8/dotnet-runtime-8.0.8-win-x64.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "legacy" link has failed with error: Uri: https://dotnetbuilds.azureedge.net/public/Runtime/8.0.8/dotnet-win-x64.8.0.8.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443
dotnet-install: Downloading from "primary" link has failed with error: Uri: https://dotnetcli.azureedge.net/dotnet/Runtime/8.0.8/dotnet-runtime-8.0.8-win-x64.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "legacy" link has failed with error: Uri: https://dotnetcli.azureedge.net/dotnet/Runtime/8.0.8/dotnet-win-x64.8.0.8.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "primary" link has failed with error: Uri: https://dotnetbuilds.azureedge.net/public/Runtime/8.0.8/dotnet-runtime-8.0.8-win-x64.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "legacy" link has failed with error: Uri: https://dotnetbuilds.azureedge.net/public/Runtime/8.0.8/dotnet-win-x64.8.0.8.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443
dotnet-install: Downloading from "primary" link has failed with error: Uri: https://dotnetcli.azureedge.net/dotnet/Runtime/8.0.8/dotnet-runtime-8.0.8-win-x64.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "legacy" link has failed with error: Uri: https://dotnetcli.azureedge.net/dotnet/Runtime/8.0.8/dotnet-win-x64.8.0.8.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "primary" link has failed with error: Uri: https://dotnetbuilds.azureedge.net/public/Runtime/8.0.8/dotnet-runtime-8.0.8-win-x64.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443 Downloading from "legacy" link has failed with error: Uri: https://dotnetbuilds.azureedge.net/public/Runtime/8.0.8/dotnet-win-x64.8.0.8.zip StatusCode: Error: An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 152.199.19.161:443
Could not find ".NET Core Runtime" with version = 8.0.8 Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET support At C:\Users\user.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-2.1.5\dist\install scripts\dotnet-install.ps1:1330 char:5
"$assetName
" with version = $($DownloadLi ...
+ CategoryInfo : OperationStopped: (Could not find ...on .NET support:String) [], RuntimeException
+ FullyQualifiedErrorId : Could not find ".NET Core Runtime" with version = 8.0.8
Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET support
, CODE: 1, SIGNAL: null
at f.next (c:\Users\user.vscode\extensions\vscode-dotnet-runtime-library\dist\Acquisition\AcquisitionInvoker.js:70:50)
at Generator.next (
@chrishocoop The errors you're seeing are coming from the vscode-dotnet-runtime extension while it's attempting to download the .NET runtime, which is required by the Bicep extension. It seems like this could be related to your specific internet environment. Have you tried the workaround mentioned in the error message?
Our CDN may be blocked in China or experience significant slowdown, in which case you should install .NET manually
You can find instructions for manually installing .NET here: https://github.com/dotnet/vscode-dotnet-runtime/blob/main/Documentation/troubleshooting-runtime.md#manually-installing-net.
Hi @chrishocoop, this issue has been marked as stale because it was labeled as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 3 days of this comment. Thanks for contributing to bicep! :smile: :mechanical_arm:
Does this occur consistently? Repro steps:
1. 2.
Action: bicep.activate Error type: string Error Message: Launching server using runtime C:\Program Files\dotnet failed. Error: spawn C:\Program Files\dotnet ENOENT
Version: 0.29.47 OS: win32 OS Release: 10.0.19044 Product: Visual Studio Code Product Version: 1.93.0 Language: en