Click here to Skip to main content
16,010,022 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Error	1	Unable to copy file "obj\x86\Debug\voy_wfa1.exe" to "bin\Debug\voy_wfa1.exe". The process cannot access the file 'bin\Debug\voy_wfa1.exe' because it is being used by another process.	voy_wfa1



ok im getting this error and have tried to find a soln before but not a soln that getting rid of my prob.
ok wen i create two forms i add values into one and store in in the after that i want to close the current form and open a form which has a button click which on click displays a data grid view with the data


i used the :

C#
this.Close();
Form2 obj = new Form2();
obj.Show();


but on building im getting the error mentioned above. any solution pls. Im a newbie to the .net world.
Thanks for ur help.
Posted
Updated 24-Nov-11 22:14pm
v2

You're probably not terminating your application correctly, leaving form instances alive which means the process won't end.

Have a look in Task Manager -> Processes. Can you see process voy_wfa1 in the list at all? If so, click on it and 'End Process', then try rebuilding.
 
Share this answer
 
Comments
Mehdi Gholam 25-Nov-11 4:15am    
Exactly! 5'ed
Try cleaning the solution, then rebuild it. This error might occur if you have a window opened and trying to run the application again.

Hope it helps :)
 
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