Click here to Skip to main content
15,883,883 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello experts

I have a project in C# and I get this error every time I try to compile the project :
(Unable to copy file "obj\Debug\Project1.exe" to "bin\Debug\Project1.exe". .Could not find the file.

Already tried with clean solution,closing visual studio, but nothing works,the error still remains.

Please help me.

Thanks in Advance
Posted

Clean the solution, manually delete the exe, .suo file.
then build the solution. Make sure there are not any bug. thanks.
 
Share this answer
 
Comments
Shafeequl 3-Mar-14 1:57am    
i tried this but the error still remains.
any other option?
make sure that any other instance of your program is not running on your system..check the instance by using task manager and close all the instance .Then manually delete obj folder. then clen solution then rebuild again.
 
Share this answer
 
v2
Do you have Avast! Antivirus running?
Then exlude your build path from being scanned and try again.

Regards -- John Pool
 
Share this answer
 

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