question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dotnet commands Permission Denied

See original GitHub issue

In the vscode project below issue was posted:

Issue Type: Bug

When debugging a dotnet core 3.1 project through vscode I get the following error. I’ve checked that the project files have the correct permissions, have tried running vscode with sudo, and reinstalled vscode without fixing this issue.

Rolling back to the previous version [of vs code] fixed the issue, so this appears to be caused by the latest update.

execvp(3) failed.: Permission denied
The terminal process "dotnet 'build', '/Users/a0793132/Documents/services/broker-service/api/BrokerService.API/BrokerService.API.csproj', '/property:GenerateFullPaths=true', '/consoleloggerparameters:NoSummary'" failed to launch (exit code: 1).

https://github.com/microsoft/vscode/issues/123324

vscode developers suggest this issue is caused by C# extension, however the issue can resolved by downgrading vscode. Not sure how execvp is triggered, but this may be a cross project issue.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
JoeRobichcommented, May 18, 2021

@superman-lopez So this failure is occuring when VS Code is executing the build task defined in your .vscode/tasks.json. Could you try changing the “type” of the build task from “process” to “shell” and trying again on the latest VS Code?

1reaction
cpozoscommented, Sep 2, 2022

In macOS Monterrey it is also happening. It is fixed using shell instead of process as type

Read more comments on GitHub >

github_iconTop Results From Across the Web

net core - Permision denied for dotnet - Stack Overflow
When I run the command as the root user it works perfectly fine. I don't know if this is because I installed dotnet...
Read more >
"dotnet" commands have permission issues #9649 - GitHub
Any dotnet command results in: -> % dotnet restore Permission denied to modify the '/usr/local/share/dotnet/sdk/NuGetFallbackFolder' folder.
Read more >
Elevated access for dotnet commands - .NET CLI
The primary issue is permission management problems when a user transitions back and forth between root and a restricted account after issuing ...
Read more >
dotnet publish permission denied
-> % dotnet restore Permission denied to modify the '/usr/local/share/dotnet/sdk/NuGetFallbackFolder' folder. Here are some options to fix this error: ----- 1.
Read more >
Durable-c22d6eb4/script.sh: 1: dotnet: Permission denied
This is an unfortunately vague error. You should make sure that the user account running the pipeline has permissions to read/execute the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found