Unable to start program: Access denied

15,588

Solution: Deactivate your Anti-Virus program's active file protection that scans *.exe files when executed.

Troubleshooting: The error message "Acess Denied" is an indication that the system doesn't reach the program. From this point one should start examine possible obstacles. Start with deactivating the virus program. If that helps try and find out what part of the virus program that is the problem and deactivate only that part. Else continue examine other possible obstacles.

Share:
15,588
StiggyStardust
Author by

StiggyStardust

Updated on June 15, 2022

Comments

  • StiggyStardust
    StiggyStardust almost 2 years

    I have reasently uppgraded my computer with a SSD drive. I did a fresh installation of windows. In the process I also uppgraded from win 8.1 to win 10.

    I use a decentralized arichive keeping the system on the C:\ drive and documents on a bigger storage drive D:\ .


    Problem: When the win10 installation was finished and so the installation of Visual Studio I went on to open one of my programming projects just to get the following error message when compiling.

    Microsoft Visual Studio
    
        Unable to start program
        'D:\...\project\Debug\project.exe'.
    
        Access denied.
    
    • The project hasn't been moved since I use the same storage drive as before the installation.

    • When I plugg in the old system containing win 8.1 there are no problems to be found.

    • A similar error message pops up if the *.exe file is started from the explorer.

    What can be done about this?

    Using Visual Studio 2015 on a Windows 10 computer, programming in C++.

    Updates

    • This also affects new projects & solutions made from Visual Studio 2015

    • The location of the *.exe file doesn't seem to matter. Even a new project started on the C:\ drive encounters the same problem.

    • Starting the project in a folder with default security acess (windows user ID) gives the same result.