I have my custom continous build that log an error for my tfs service host.
Service ‘Default Agent – basv-tfs-001’ had an exception: Exception
Message: Problem with loading custom assemblies: API restriction: The
assembly
‘file:///C:\Windows\ServiceProfiles\NetworkService\AppData\Local\ProjectBranchDevelopment\BuildAgent\2\ReportViewer.ProcessingObjectModel\Microsoft.ReportViewer.ProcessingObjectModel.dll’
has already loaded from a different location. It cannot be loaded from
a new location within the same appdomain. (type Exception)
I have found i have the same dll saved in 2 locations in my repository.
can i hide it from build?
Edit the workspace in your build definition. Add a reference to the folder containing one of the dll’s and change “active” to “cloaked” that will stop TFS getting that folder during the build