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:
- Go to Windows Security (you can search for it in the Start Menu).
- Click on "Virus & threat protection".
- Scroll down and click on "Manage ransomware protection" under "Ransomware protection".
- Under "Controlled folder access", click on "Allow an app through controlled folder access".
- Click on "Add an allowed app" and browse all apps to add Visual Studio.
- 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.