by XDK
24. June 2013 07:23
ERROR
"Run On Agent (reserved build agent <Agent1>). There was no endpoint listening at <TFS url> that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.Cannot stop the build. Details: Operation did not complete in 00:01:00. (After trying to stop the build) TF215104: Failed to stop build 23649: it did not respond to a workflow cancellation request."
Solution
1) Identify and Remove the queued builds data from dbo.tbl_BuildQueue table in the Tfs_CollectionName database.
select * from dbo.tbl_BuildQueue
delete from dbo.tbl_BuildQueue where QueueID = 'ID'
2) Remove the build agent from the controller
Identify the build agent and note the value of ReservationId and AgentId.
SELECT * FROM tbl_BuildAgent
DELETE FROM tbl_BuildAgentReservation WHERE ReservationId = [ReservationId]
UPDATE tbl_BuildAgent SET ReservationId = NULL WHERE AgentId = [AgentId].
Remove the Build Agent from TFS Admin Console.