Home DotNet Fixed: Error Unable to copy file ... to .... Access to the path ... is denied
Author:

When trying compile a Visual Studio project I get an error:

Error Unable to copy file ... to .... Access to the path ... is denied.

After searching for a while I realize that the error occurs after I have added the project to Team Foundation Server (TFS). I then read the error message carefully and realize that the bin folder has been included into TFS. I remove the debug folder from TFS and then I try to compile the project again and this time it works fine.

So if you get this error make sure you don't add the debug folder into TFS, otherwise it could lock up the folder and the files within it. Hence you cannot compile the project.

 



Comments (0)
Write comment
Your Contact Details:
Comment:
Security
Please input the anti-spam code that you can read in the image.

"