3
votes

Consider a TFS 2010 server with "Build Service", "Build Controller" and "Build Agent" running on the same system. Things work 'most of the time', however occasionally I have to restart the 'Build Service'. Few questions:

  1. What is the Build Service?

  2. Do the build agents talk to anything other than the build controller (for example TFS)? I ask because I want to put the agents in another network which doesn't have access to TFS but a quick test shows that they are still looking for TFS, any ideas why?

  3. My Build Service shows 3350 errors (!) in the last 24 hours. Looking at the event log I see a LOT of Controller or Agent "Could not load file or assembly 'file:///C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\BuildController\1\System.Core.dll'". Any ideas what its problem is? I can just feed it the files but I would like to know why it doesn't know where to find them.

Exact error from the event log:

Service 'Default Agent - thakur' had an exception: Exception Message: Problem with loading custom assemblies: Could not load file or assembly 'file:///C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\BuildAgent\1\System.Core.dll' or one of its dependencies. The system cannot find the file specified. (type Exception) Exception Stack Trace:

Service 'Default Controller - thakur' had an exception: Exception Message: Problem with loading custom assemblies: Could not load file or assembly 'file:///C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\BuildController\1\System.Core.dll' or one of its dependencies. The system cannot find the file specified. (type Exception) Exception Stack Trace:

There is nothing in the logs after 'Exception Stack Trace:'.

2
Can you supply a printout of the errors? Is your build controller setup correctly?Michael Wheeler
It is 'setup correctly' in the sense that I can execute workflows and get the results.Thakur

2 Answers

2
votes

Review Understanding a Team Foundation Build System and the first two questions should be answered.

1
votes

Does your "Build Agent" has .Net installed on it?