Search code examples
debuggingvisual-studio-2022

Access Is Denied when Debugging Visual Studio 2022 Preview


When attempting to debug, any solution/project, in Visual Studio 2022 preview I'm receiving "Access Is Denied"

The directory that the solution exists has all the correct permissions for my user account as well as administrators. I have also tried while running Visual Studio as admin. The output exe will also register Access Is Denied if I try to run it directly, outside visual studio. I can move the exe to another directory and still receive the Access Is Denied message.

I utilize Windows 10 version 21H2, I login using an Azure Active Directory account.

My project paths live in C:\Users(MyAzureName)\Version Control\

Debug Error

Console Error

Permissions


Solution

  • I finally figured out the cause of this problem. Our cloud antivirus solution was submitting applications from my Version Control directory to quarantine without notifying me. I have excluded this path from my AV scanning and now my debugging is functioning as normal.