MIcrosoft Defender Exploit Guard is blocking my VS application from running - Access Denied

87044590 0 Reputation points
2023-10-20T04:07:35.9366667+00:00

blocking VS from running

Microsoft Defender for Identity
Microsoft Defender for Identity
A Microsoft service that helps protect enterprise hybrid environments from multiple types of advanced, targeted cyberattacks and insider threats.
175 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Fiona Matu 86 Reputation points Microsoft Employee
    2024-02-04T17:41:15.3866667+00:00

    Hi 87044590,

    please start by temporarily disabling Exploit Guard to ensure that it is the one causing the issue.

    If it is confirmed that the issue is emanating from Exploit Guard, the Controlled folder access feature could be blocking your application from executing. Try resolving this by following the steps below:

    1. Go to Windows Security (you can search for it in the Start Menu).
    2. Click on "Virus & threat protection".
    3. Scroll down and click on "Manage ransomware protection" under "Ransomware protection".
    4. Under "Controlled folder access", click on "Allow an app through controlled folder access".
    5. Click on "Add an allowed app" and browse all apps to add Visual Studio.
    6. You can either choose recently blocked apps or browse for an .exe file manually.

    If Visual Studio is listed in the recently blocked apps, you can just add it. If not, you will need to manually browse to the Visual Studio .exe file (it's typically located in the "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE" directory). After doing this, restart Visual Studio and try running your application again.

    0 comments No comments