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

Update failed. #790

Open
JVLBjoerk opened this issue Mar 15, 2023 · 0 comments
Open

Update failed. #790

JVLBjoerk opened this issue Mar 15, 2023 · 0 comments

Comments

@JVLBjoerk
Copy link

Hey

In shorts, was asked to update vscode by a message in the right corner. pressed "install" and almost right after I got a message stating something went wrong with .NET

Repro steps:

Extension Version: 1.0.0
Error Message: .NET Acquisition Failed: Installation failed: Error: Command failed: powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command "& { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 ; & 'c:\Users\anonymous.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-1.6.0\dist\install scripts\dotnet-install.ps1' -InstallDir 'c:\Users\anonymous\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\6.0.15' -Version 6.0.15 -Runtime dotnet }
dotnet-install: Failed to extract package. Exception: Exception calling "ExtractToFile" with "3" argument(s): "The process cannot access the file 'C:\Users\anonymous\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\6.0.15\shared\Microsoft.NETCore.App\6.0.15\api-ms-win-crt-heap-l1-1-0.dll' because it is being used by another process."
Exception calling "ExtractToFile" with "3" argument(s): "The process cannot access the file 'C:\Users\anonymous\AppData\Roami
ng\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\6.0.15\shared\Microsoft.NETCore.App\6.0.15\api-
ms-win-crt-heap-l1-1-0.dll' because it is being used by another process."
At C:\Users\anonymous.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-1.6.0\dist\install
scripts\dotnet-install.ps1:822 char:21

  • ... [System.IO.Compression.ZipFileExtensions]::ExtractToFile( ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : IOException

Error Stack: Error: .NET Acquisition Failed: Installation failed: Error: Command failed: powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command "& { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 ; & 'c:\Users\anonymous.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-1.6.0\dist\install scripts\dotnet-install.ps1' -InstallDir 'c:\Users\anonymous\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\6.0.15' -Version 6.0.15 -Runtime dotnet }
dotnet-install: Failed to extract package. Exception: Exception calling "ExtractToFile" with "3" argument(s): "The process cannot access the file 'C:\Users\anonymous\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\6.0.15\shared\Microsoft.NETCore.App\6.0.15\api-ms-win-crt-heap-l1-1-0.dll' because it is being used by another process."
Exception calling "ExtractToFile" with "3" argument(s): "The process cannot access the file 'C:\Users\anonymous\AppData\Roami
ng\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\6.0.15\shared\Microsoft.NETCore.App\6.0.15\api-
ms-win-crt-heap-l1-1-0.dll' because it is being used by another process."
At C:\Users\anonymous.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-1.6.0\dist\install
scripts\dotnet-install.ps1:822 char:21

  • ... [System.IO.Compression.ZipFileExtensions]::ExtractToFile( ...

  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : IOException

    at c:\Users\anonymous.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-1.6.0\dist\extension.js:2:4766

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

No branches or pull requests

2 participants