1
votes

i am a beginner at C# so when i start debugging my project of C# i am getting this error could anyone can help me right now cause i have just couple of hours to complete this project..

Error 1 Unable to copy file "obj\x86\Release\ali.exe" to "bin\Release\ali.exe". The process cannot access the file 'bin\Release\ali.exe' because it is being used by another process.

4
Do you have the executable running in a command prompt window?Bauhaus

4 Answers

4
votes

Close your application before hitting "Debug" / "Start Debugging". If your application has no visible window, you may need to end the process "Ali.exe" using the Windows Task Manager.

You may also want to select the "Debug" configuration to actually debug.

3
votes

Obviously, this exe is running right now.
Stop it in the VS IDE or using the Task Manager.

0
votes

Press CTRL+SHIFT+ESCAPE to open TASK MANAGER

LOOK FOR :

  • ali.exe
  • End proccess
  • Rebuild
-1
votes

I just ran into this problem myself.

It turned out someone else on the work server had the exe running on their computer, and we don't have collaboration/file sharing set up at all.

As soon as he closed the app, the problem vanished.

So, if all else fails, check if a coworker has it running!