Share via


TFSbuildServiceHost service doesnot start automatically when the build machine reboots

When build machines reboots the tfsbuildservicehost service does not start automatically and throw the below error in event log

Service cannot be started. Microsoft.TeamFoundation.TeamFoundationServiceUnavailableException: Team Foundation services are not available from server .
Technical information (for administrator):
  HTTP code 404: Not Found ---> System.Net.WebException: The remote server returned an error: (404) Not Found.
   at System.Net.HttpWebRequest.GetResponse()
   at Microsoft.TeamFoundation.Client.TeamFoundationClientProxyBase.AsyncWebRequest.ExecRequest(Object obj)
   --- End of inner exception stack trace ---
   at Microsoft.TeamFoundation.Client.TeamFoundationClientProxyBase.ProcessHttpResponse(HttpWebResponse response, Stream responseStream, WebException webException, XmlReader& xmlResponseReader)
   at Microsoft.TeamFoundation.Client.TeamFoundationClientProxyBase.ExecWebServiceRequest(HttpWebRequest request, XmlWriter requestXml, String methodName, HttpWebResponse& response)
   at Microsoft.TeamFoundation.Framework.Client.LocationWebService.Connect(Int32 connectOptions, ServiceTypeFilter[...

 

Resolution:

Issue is caused if both TFSbuild 2008 and 2010 service are running on the same build machine. You need to stop or remove TFSbuild 2008 and not run both the services on the same build machine.