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

I have windows application and while build solution, i am getting following error message and unable to build success.

"Error 44 Unable to copy file "Path\\*.dll" to "Path\\*.dll". The process cannot access the file 'Path\\*.dll' because it is being used by another process.

Previously i am able to build, once i get latest source from TFS then i am getting issue.

What I have tried:

1. I have tried to delete obj folder in application path. it build then again build the same error occurred.
Posted
Updated 1-Jan-19 23:59pm
Comments
Richard MacCutchan 2-Jan-19 4:21am    
It means that the dll file you are trying to build is in use by another application, so the file on disk cannot be overwritten. Check your system to see why.

If you use a version control system like GIT you can easily see what the changes are.
Otherwise search for the line that contains "Path\\*.dll" and fix the bug, it could be that Path needs to be substituted for another string like: "C:\\Temp".
As you get the error during build, look in the Pre and Post-build events under Projects - Build Events.
 
Share this answer
 
v2
I have removed the read only access for the folder and also i have removed the nested bin folder. Now issue not occurred.
 
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