Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
5.00/5 (1 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
Updated 10-Jul-18 23:48pm
v3
Comments
Dalek Dave 11-Oct-10 5:48am    
Edited for Grammar and Readability.
PumbaPumba 11-Oct-10 5:58am    
Are you using VS2010?
[no name] 17-Jan-13 23:17pm    
Always clear your temp folder for cache and temporary files that may create problem.

Try to close down VS completely and start it up again. If that doesn't work, you need to restart your development computer...
 
Share this answer
 
Comments
aayu 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... :-)
aayu 11-Oct-10 7:31am    
i am using VS2008 and i was facing this problem because of auto generate sequence number code.
#realJSOP 12-Oct-10 9:47am    
Your app isn't shutting down correctly. It's not a bug in the IDE - at least not that I've ever experienced.
You can restart your computer :-D
 
Share this answer
 
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.
 
Share this answer
 
Comments
aayu 11-Oct-10 5:53am    
i did that but then also same problem :(
Go to your services (where you are running the service) and Stop the service .And Restart the service then you may solve your problem
 
Share this answer
 
Comments
VICK 20-Mar-14 1:36am    
Logic to answer an already answered and longgggggg old question?
So i had the following problem when trying to compile my solution an error occured “Error 1 Unable to copy file “obj\…\Debug\…exe to bin\Debug\…exe the process cannot acces the file because it is used by another process. After about many hours of searching for solutions for that problem i have tried about many fixes but none of them worked for me.But after a while of searching in the internet i saw discussion about it and some one suggested that the problem is not form VS but from Win 7 security and it is associated with the application experience.So i checked it out and it worked like magic.Everything was fixed.

So if u have the problem My computer > manage > Service & Application > Services >Application experience ( set it to automatic and restart it ). Hope this helps some one cause this is pretty much discussed over the internet.
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900