Blog Stats
  • Posts - 13
  • Articles - 0
  • Comments - 47
  • Trackbacks - 23

 

Thursday, December 15, 2005

Team Build TF42046: The Build Service used in the build process is not reachable

 

If you encounter the TF42046 error, you may want to make sure of a few things:

 

  1. That Team Build is installed on the build machine. This can be found on the Team Foundation Server installation CD in the BB directory. Run setup to install Team Build
  2. Make sure the Team Build Service is running. Open the services MMC snapin and look for Team Build Service. Make sure the service is running. Also note the account that the service runs as; you will need it for the next step
  3. Make sure the Team Build Service account (from step 2) is in the “TFS Service Accounts” group. For more information see http://blogs.infosupport.com/raimondb/archive/2005/11/28/bbsvcacc.aspx
  4. Make sure the designated Team Build port is listening and available thru any firewalls. By default, the port used is 9191. Open a command prompt on the build machine and run “netstat”. Make sure TCP port 9191 is listening. You may want to make sure The Team Build service has this port and not another application on the build server. Make sure this port is not blocked by the window’s firewall or any other firewall in you enterprise.
  5. Make sure the paths defined in your PATH system variable do not have any invalid characters. This includes any “” around the paths. Part of the Team Foundation Build Client source code attempts to build the path to msbuild.exe using the paths defined in this environment variable. Unfortunately the exception that is thrown when the system attempt to call Path.Combine on a malformed path is masked by the misdirecting TF42046 error.
  6. If all else fails, turn on verbose tracing by navigating to the build server’s build service install directory and uncomment the trace flags in the TeamBuildService.exe.config file. You can find this file at “<install drive>:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\”. You can verify this directory by checking the run directory listed in the properties window of the TeamBuildService found in the services snapin.

 

I had a hard time getting Team Build to run on most of my servers because of #5. In my lab environment, all of my servers have Norton Ghost running on them. It seems that when Norton installs, it added a path to the PATH environment variable and wraps it in “”. Once I removed the “”, everything worked fine. All I can say is “thank god for Reflector!”

 

 

 

Copyright © Tom Wisnowski