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

 

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!”

 


Feedback

# VSTS Links - 12/16/2005

Gravatar James Newkirk talks about the Patterns & Practices Summit in Sydney.

Ok, the Visual Studio Team System... 12/16/2005 6:01 AM | Team System News

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

Gravatar Thanks a million point 5 really helped me out.

to find additional help regarding the Team Build Service account follow the link. 2/16/2006 3:21 AM | Fredrik Wassberg

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

Gravatar Ran into this error today trying to kick off a team build. Found this link that I&rsquo;m using to try 10/20/2006 6:10 PM | Steven Smith

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

Gravatar Step 3 ought to say that the build service account should be in the TFS Build Services group for that Team Project ([whatever team project]\Build Services). You would not want it to be in the TFS Service Accounts group (that’s full admin access).

Buck 5/9/2007 8:00 PM | Buck Hodges

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

Gravatar Thank you so much the information got me to my first team build.
I would like to add when installing team build on a 64bit Vista build box, IIS needs to be running
and
at the command line "path\aspnet_regiis.exe -i -enable" also needs to be run before attempting to install the build software. Otherwise you get an error 32000 during the install of team build.
Info might save someone an hour of digging. 10/8/2007 11:52 AM | Ernest

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

Gravatar Hello all,
I am getting this erro for a specific buid project. I can run other builds just fine on the same machine but it will refuse to do so for another build. Any ideas? 12/27/2007 5:18 AM | Lambros Vasiliou

Post a comment





 

 

 

Copyright © Tom Wisnowski