Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error in visual studio, Access to the path is denied

I've been having this problem for a while now. I created a brand new winforms c# application in Visual Studio. I can usually launch it in debug mode once without a problem. However, if I close it and launch it again I get an error "Unable to copy file TestApplication.exe to bin\release\TestApplication.exe". Access to the path is denied.

This is driving me crazy. Why is this happening? I noticed that the folders are marked as read only. However, when I try to change it nothing happens. My manager suggested that it could be the fault of some of the extensions that I've installed. I'm using Microsoft's power tools as well as AnkhSVN plug in.

like image 871
Leon Avatar asked Jul 19 '11 16:07

Leon


1 Answers

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

like image 74
Conrad Frix Avatar answered Oct 12 '22 16:10

Conrad Frix