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

dotnet.exe access denied because of this error #15276

Open
msjo66 opened this issue Oct 10, 2024 · 2 comments
Open

dotnet.exe access denied because of this error #15276

msjo66 opened this issue Oct 10, 2024 · 2 comments
Assignees

Comments

@msjo66
Copy link

msjo66 commented Oct 10, 2024

Does this occur consistently?
Repro steps:

Action: bicep.activate
Error type: EPERM
Error Message: spawn EPERM

Version: 0.30.23
OS: win32
OS Release: 10.0.19045
Product: Visual Studio Code
Product Version: 1.94.1
Language: en

Call Stack
extension.js:2:2079644extension.js:2:2079644
async LanguageClient.createConnection extension.js:2:1899159
async LanguageClient.start extension.js:2:1889513
extension.js:2:2704251extension.js:2:2704251
@majastrz majastrz changed the title dotnet.exe access denied cause this error dotnet.exe access denied because of this error Oct 16, 2024
@majastrz
Copy link
Member

@msjo66 Does the user that's launching VS code (and the Bicep extension) have access to dotnet on the same machine?

Also, did you use a custom dotnet installation path with our extension?

@majastrz majastrz added the Needs: Author Feedback Awaiting feedback from the author of the issue label Oct 16, 2024
@msjo66
Copy link
Author

msjo66 commented Oct 20, 2024

@majastrz Frankly speaking, the problem is not Bicep but dotnet.exe. I'm the owner of dotnet.exe but when I execute dotnet.exe, it returns 'access denied' and it causes following

2024-10-20T23:16:43.113Z debug: Found language server at 'c:\Users\10156166.vscode\extensions\ms-azuretools.vscode-bicep-0.30.23\bicepLanguageServer\Bicep.LangServer.dll'.
[Error - 8:16:43 AM] Bicep client: couldn't create connection to server.
Error: spawn EPERM
at ChildProcess.spawn (node:internal/child_process:421:11)
at Object.spawn (node:child_process:795:9)
at c:\Users\10156166.vscode\extensions\ms-azuretools.vscode-bicep-0.30.23\out\extension.js:2:2079644
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async LanguageClient.createConnection (c:\Users\10156166.vscode\extensions\ms-azuretools.vscode-bicep-0.30.23\out\extension.js:2:1899159)
at async LanguageClient.start (c:\Users\10156166.vscode\extensions\ms-azuretools.vscode-bicep-0.30.23\out\extension.js:2:1889513)
at async c:\Users\10156166.vscode\extensions\ms-azuretools.vscode-bicep-0.30.23\out\extension.js:2:2704251
8:16:43 AM: Error: spawn EPERM
2024-10-20T23:16:43.163Z error: spawn EPERM

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs: Author Feedback Awaiting feedback from the author of the issue label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants