windowsvisual-studio

Unable to start program - Access is denied error in Visual Studio


I tried to run some C++ code on Visual Studio 2017, but I am getting this message shown below:

Access Denied

Unable to start program 'E:\wittos\company projects\project 4\object tracking\source codes\KCF-master (1)\KCF-master\x64\Release\ALL_BUILD'.

Access is denied.

How can I resolve this error?


Solution

  • You are trying to "execute" the "ALL_BUILD" folder rather than your program; a folder can't be executed.

    Check your program's project properties and ensure that the "Command" you want to debug actually points to the compiled 'exe' file or $(TargetPath) and ensure that you have the correct start-up project selected.