Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to copy file "obj\Debug\project.dll" to "bin\project.dll". Access to the path 'bin\project.dll' is denied

i am having this error when trying to build a solution in visual studio 2008. What does that mean?

like image 943
medusa Avatar asked Sep 14 '10 09:09

medusa


2 Answers

It probably means that the file bin\project.dll is locked for writing by another process (possibly another instance of Visual Studio).

You should try closing down all instances of VS and any other programs that could be attempting to read that file, then re-open Visual Studio and try to build again.

If that doesn't work then you can try using Process Explorer to work out what process is locking that file.

like image 154
Justin Avatar answered Oct 05 '22 22:10

Justin


I followed the steps below.

  • Go to “bin" folder. In some cases it may be "\bin" - one level up of the current.
  • View the properties of the dll file and see whether it is marked as "Read Only". If read only check box checked, uncheck it.

This happens if the project is under any source control system.

Also refer Unable to copy a file from obj\Debug to bin\Debug

like image 31
LCJ Avatar answered Oct 06 '22 00:10

LCJ