When I compile my project, I get the following error:
The compiler makes 10 attempts to copy the .exe file from the obj\x86\Debug folder to the bin\Debug folder, then stops the compilation process.Code:Could not copy "obj\x86\Debug\Vehicle Tracker.exe" to "bin\Debug\Vehicle Tracker.exe". Beginning retry 1 in 1000ms. The process cannot access the file 'bin\Debug\Vehicle Tracker.exe' because it is being used by another process.
The way I work around this error is to do the following:
1. Close VS2010.
2. Delete the project's \bin folder.
3. Restart VS2010.
4. Compile the project.
There must be a better way. Can someone please help me resolve this error?
Thanks.




Reply With Quote