dotnet / dotnet/vscode-dotnet-runtime

.Net Acquisition failed

Open
#230 1 comment 0 reactions 0 assignees View on GitHub
bug cause:file-in-use cause:network-issue
Dominant language
TypeScript
Stars
209
Forks
455
PR merge metrics
No merged PRs in 30d

Description

**Repro steps:**

1.

**Extension Version:** 1.0.0
**Error Message:** .NET Acquisition Failed: Installation failed: C:\Users\anonymous\.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-1.1.0\dist\install scripts\dotnet-install.ps1 :
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\3.1.15\dotnet.exe'
because it is being used by another process."
At line:1 char:136
+ ... e]::Tls12 ; & 'c:\Users\anonymous\.vscode\extensions\ms-dotnettools.vscode- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [dotnet-install.ps1], MethodInvocationException
+ FullyQualifiedErrorId : IOException,dotnet-install.ps1

**Error Stack:** Error: .NET Acquisition Failed: Installation failed: C:\Users\anonymous\.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-1.1.0\dist\install scripts\dotnet-install.ps1 :
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\3.1.15\dotnet.exe'
because it is being used by another process."
At line:1 char:136
+ ... e]::Tls12 ; & 'c:\Users\anonymous\.vscode\extensions\ms-dotnettools.vscode- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [dotnet-install.ps1], MethodInvocationException
+ FullyQualifiedErrorId : IOException,dotnet-install.ps1

at c:\Users\anonymous\.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-1.1.0\dist\extension.js:2:13753
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)

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.