Team Build–Unable to copy file bin\xx.dll to bin\xx.dll. Access is denied.

5/11/2011

One of our teams hit this today with strange errors in the build logs.  The errors looked like this:-

$/Development/Source/Service.csproj ('Package' target(s)) - 23 error(s), 0 warning(s), View Log File

clip_image002C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets (3001): Unable to copy file "C:\Builds\2\Sources\Development\Source\Blah.dll". Access to the path 'bin\Blah.dll' is denied.

There were many of these in the build output.  Some head scratching and searching later turned up the answer.  Someone had checked in a bin folder to Source Control – this will make it read only etc etc. (You can guess the rest)

Posting here so that next time it gets me I have a reference, and also it will hopefully help someone else.

5/11/2011

2 comments :

  1. Data Recovery services for hard disk drives, SSD, RAID, NAS, USB flash drives, memory cards and mobile phones in New Zealand. Lab based in Auckland. data recovery auckland

    ReplyDelete
  2. Try to check your computer software updates. Besides, if you need some help with missed .dll library files you can look for some great solution on http://fix4dll.com/msvcp140_dll Try to and I'm sure you'll solve it fast. Hope it willl be useful for you. Good luck.

    ReplyDelete