title: Unable to start program VS2015 | Access denied | system cannot find the file specified
body: <p>I am trying to configure VTK with VS 2015 on win10 x64  . I downloaded VTK-8.1.0 source, created VS2015 project with cmake and build it with Visual Studio IDE. To test, I downloaded the <a href="https://lorensen.github.io/VTKExamples/site/Cxx/GeometricObjects/Sphere/" rel="nofollow noreferrer">sphere visualization code</a> and created a VS2015 project with cmake and build it with VS2015 IDE. Everything is successfull. I run the .exe created from vtkproject/build/debug/.exe and I get the output as expected. Its displays a sphere. But when I run the program from the IDE, it gives runtime error as shown below:<br>
  <a href="https://i.stack.imgur.com/IQcmU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IQcmU.png" alt="build output"></a>
  <a href="https://i.stack.imgur.com/53njh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/53njh.png" alt="enter image description here"></a></p>
  
  <p>I also tried using the pre-built VTK-7.0 binaries which were a part of PCL pre-built x64 binaries for VS2015 from <a href="http://unanancyowen.com/en/pcl18/" rel="nofollow noreferrer">this blog</a> and tested the above mentioned sphere visualization program. Build seems to work and again I get the expected output from running the .exe created in vtkproject/build/debug/.exe but I get another runtime error when trying to run program from VS IDE as shown below: </p>
  
  <p><a href="https://i.stack.imgur.com/UyHAV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UyHAV.png" alt="enter image description here"></a>. </p>
  
  <p>I saw a similar post <a href="https://stackoverflow.com/questions/46520555/debug-in-visual-studio-2017-gives-access-denied">here</a> but the accepted answer doesn't work for me. </p>
  
  <p>Kindly help me regarding this issue. </p>