tags:

views:

34

answers:

2

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:'.

A: 

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

Michael Wheeler
Thanks Michael. The docs help but tfs still feels a little too opaque. Maybe I'll internalize it after a few more rounds of review.
Thakur
A: 

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

afsharm
Yes -- it's actually my development machine with .NET 4 and VS 2010 installed.
Thakur