Encounter TF224004 when start build service

Today, I configured my TFS to use HTTPS protocol. After configured one build agent to to use HTTPS, I got  TF224004 when trying to start the build service.

Detailed Message: TF224004: The Visual Studio Team Foundation Build service failed to start because NT AUTHORITY\NETWORK SERVICE does not have the required access permissions for address https://161792m2:9191/Build/v2.0/AgentService.asmx. Exception Message: HTTP could not register URL https://+:9191/Build/v2.0/AgentService.asmx/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details). (type AddressAccessDeniedException)

“Network Service” is the service account of the build service. After reading Steven Cheng’s reply at http://www.devnewsgroups.net/group/microsoft.public.dotnet.framework/topic49734.aspx, I figured out I was hitting the same issue.

Solution to this problem

  1. On the build agent machine, open command window.
  2. Run netsh http show urlacl. In the result, I noticed url https://161792m2:9191/Build/v2.0/AgentService.asmx was assigned a user other than “Network Service”.
    Previous
  3. Run netsh http add urlacl url=https://+9191/Build/v2.0/AgentService.asmx user="NT AUTHORITY\NETWORK SERVICE"
  4. Run netsh http show urlacl again to verify the urlacl has been set correctly.
    After

After adding the URLACL for “Network Service” account, the build service could be started up successfully.

3 comments:

iPhone Cases February 9, 2011 at 11:23 PM

Great blog!!!Thank you for sharing!!! 2945abc45 0210

michaelvk September 28, 2011 at 2:34 AM
This comment has been removed by the author.
fdhty April 23, 2013 at 6:45 PM

Do not pray for tasks equal to your powers.Pray for powers equal to Buy rs gold your tasks.Then the doing of work shall be no miracle, but you shall be the miracle, Fear not that the life shall come to an end, but rather fear that Runescape Money it shall never have a beginning,. At twenty years of age Runescape2 Money., the will reigns; at thirty, the wit; and at forty, the judgment.

A bumblebee if dropped into an open tumbler will be there until it dies, unless it is taken out Cheap Minecraft Gift Code, It never sees the means of escape at the top, but persists in trying to find some way out through the sides near the bottom Ultimate Game Card, it will seek a way where none exists, until it completely destroys itself Buy Xbox Live Points.