I try to build a website app. using TFS 2010 automatic builds with a custom build definition template. The build fails when tries to copy the dll references to the Bin folder: \Lib\AjaxControlToolkit.Binary.NET4\AjaxControlToolkit.dll" to "..\Portal\Portal.Web\Bin\AjaxControlToolkit.dll". Access to the path '..\Portal\Portal.Web\Bin\AjaxControlToolkit.dll' is denied.
The application is a website and not a web application. In the LIB folder I keep all 3rd party dlls used by the website(such as the ajaxcontroltoolkit) Also both Lib and Bin folders are added to the source control.