error in visual studio, Access to the path is denied

Do you have your bin folder included in your svn? In general, you shouldn't do this, for exacly this reason.

These folders - bin and obj - are generated by VS, and so shoudl be regenerated if you check out the code again.


I had this problem today.

Symptom:

  • Build error for nearly all projects in my Visual Studio solution (IntermediateOutputPath errors with paths to temporary files)
  • Auto-inserted IntermediateOutputPath entries in all *.csproj files
  • No access to all bin\Debug and bin\Release directories (it sayed administrator rights are needed, but even with admin rights no access was possible)
  • File system check by chdsdk reported no errors

When removing these entries from the project files (by the undo function of the version control system), they were auto-inserted again after a few seconds. Really strange!

Solution:

  • Windows restart
  • Remove auto-inserted IntermediateOutputPath entries from *.csproj files

Then the problem was solved on my system. I hope this helps other people to avoid waste of time. Just try a restart and before hunting a phantom error. Good luck (-:


First check to see if you can delete the EXE. If you can't that means some process has a handle on it.

Run Process Explorer and do a search for TestApplication.exe to find what it is


Have you tried enable windows service 'Application Experience'? This solved my problem after struggling for several days.

http://www.codeproject.com/Questions/296249/Visual-Studio-2010-Access-Denied-Errors