Click here to Skip to main content
15,889,266 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Every One !

Facing a issue in c# project Named(Sunny Traders) any Help will be appreciated Wink | ;)

Error#1 " Unable to copy file "obj\x86\Debug\Sunny_Traders.pdb" to "bin\Debug\Sunny_Traders.pdb". The process cannot access the file 'bin\Debug\Sunny_Traders.pdb' because it is being used by another process"

Error# 2 "Could not copy "obj\x86\Debug\Sunny_Traders.pdb" to "bin\Debug\Sunny_Traders.pdb". Exceeded retry count of 10. Failed. Sunny_Traders"

What I have tried:

1.Adding Exception in Antivirus
2.Change in Release and Debug
3.Cleaning Project and Rebuilding
4. What is working for me is to Close VS and delete all files from project/debug/Bin ( Sadly i have to repeat No.4 Every time to execute.

What should i do next to get rid of this error ?
Posted
Updated 19-Dec-16 6:02am
Comments
Richard Deeming 19-Dec-16 12:51pm    

1 solution

It means that your application is still running. Visual Studio builds the executable in your obj/ directory and then copies it to your bin/ directory, but it's impossible to copy if the application is still running. Try to find the application window to close it, and if you can't find it, open Task Manager and kill it there.
 
Share this answer
 
Comments
Rebyc Rebyc 20-Dec-16 8:49am    
tried but did not worked :'( again i have to close VS and Delete all file from Bin and rebuild

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