Search code examples
msbuildtfsbuildtfs-2015build-agent

TFS Build error - Cannot listen on pipe name 'xxx' because another pipe endpoint is already listening on that name


In TFS, i'm doing build for my .Net project. I've got agent configured locally and build is carried using that. Error says as follows

Cannot listen on pipe name 'net.pipe://localhost/taskagent/6/xxxxxx' because another pipe endpoint is already listening on that name.

Not sure, what this exactly is....Please help. Attached the error screenshot for reference. enter image description here Note: I'm not using any TDD/test process in code


Solution

  • According to the error info not sure if it's related to TFS side. Suggest you also manually run the build directly on the build agent.

    Since the agent is newly configured, to narrow down if the error is related to your environment on the build server machine. You could also create a new build definition with a simple project such as hello world and check if got the same error. If so, suggest you delete the agent, reconfigure it follow this tutorial: Deploy an agent on Windows

    Besides, you could also set system.debug=true to enable verbose debug for build to get more detail error info, please refer: Enable Verbose Debug Mode for TFS Build vNext