Click here to Skip to main content
13,191,400 members (65,752 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Unable to copy file "obj\Debug\.exe" to "bin\Debug\.exe". The process cannot access the file 'bin\Debug\.exe' because it is being used by another process.

Please help!

I have opened the task manager and I have ended the process but the same error appears.

I am using a window application.

Thanks in Advance:rose::rose::thumbsup:
Posted 10-Oct-10 23:43pm
Updated 10-Oct-10 23:48pm
Dalek Dave433.3K
Dalek Dave 11-Oct-10 5:48am
Edited for Grammar and Readability.
PumbaPumba 11-Oct-10 5:58am
Are you using VS2010?
sisir patro 17-Jan-13 23:17pm
Always clear your temp folder for cache and temporary files that may create problem.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Try to close down VS completely and start it up again. If that doesn't work, you need to restart your development computer...
Aarti2010 11-Oct-10 6:45am
hey thanks i got it
PumbaPumba 11-Oct-10 7:02am
This is a troublesome bug in VS2010. What I'll do is, close all the edited/opened files, then build the solution. It'll work. Else, I'll have 2 debugging modes "Debug" and "Debug-xml". If I get this in "Debug" mode then I'll change the mode to "Debug-xml" and build and run. If any other those didn't help. Then, as Jhonny said I'll re-start the VS.
Johnny J. 11-Oct-10 7:23am
It's not only VS2010 - I think they must have ported the bug from VS 2008, because it exists there too... :-)
Aarti2010 11-Oct-10 7:31am
i am using VS2008 and i was facing this problem because of auto generate sequence number code.
Your app isn't shutting down correctly. It's not a bug in the IDE - at least not that I've ever experienced.
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

You can restart your computer :-D
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

It's happening because you'r currently running the application (or it didn't shutdown completely the last time you tested it).

Go into task manager, and shut it down manually if you don't have a taskbar icon.
Aarti2010 11-Oct-10 5:53am
i did that but then also same problem :(
Rate this: bad
Please Sign up or sign in to vote.

Solution 6

Go to your services (where you are running the service) and Stop the service .And Restart the service then you may solve your problem
VICK 20-Mar-14 1:36am
Logic to answer an already answered and longgggggg old question?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171017.1 | Last Updated 19 Mar 2014
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100