a·gen·tic a·gil·i·ty

Error creating listener in Team Build

TL;DR; Explains how to resolve AddressAccessDeniedException when running tests in Team Build by granting the Build Agent service account permission to create IIS listeners.

Published on
1 minute read
Image
https://nkdagility.com/resources/Eonka3snrWz
Subscribe

If, like me you are trying to run tests against your web services and you the error below, you will need to give permission to the service account that runs your Build Agent to create listeners in IIS.

Class Initialization method TestServiceProjects.RentalCentreServiceRemoteTest.MyClassInitialize threw exception. System.ServiceModel.AddressAccessDeniedException:  System.ServiceModel.AddressAccessDeniedException: HTTP could not register URL http://+:3456/RentalCentreServiceRemoteTest/ . Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details). —>  System.Net.HttpListenerException: Access is denied.

I first tried giving the service account administrator rights, and this did not work, so I added “Act as part of operating system”. Lo and behold, that worked…

Happy now…

Technorati Tags: ALM

Smart Classifications

Each classification [Concepts, Categories, & Tags] was assigned using AI-powered semantic analysis and scored across relevance, depth, and alignment. Final decisions? Still human. Always traceable. Hover to see how it applies.

Subscribe

Connect with Martin Hinshelwood

If you've made it this far, it's worth connecting with our principal consultant and coach, Martin Hinshelwood, for a 30-minute 'ask me anything' call.

Our Happy Clients​

We partner with businesses across diverse industries, including finance, insurance, healthcare, pharmaceuticals, technology, engineering, transportation, hospitality, entertainment, legal, government, and military sectors.​

Illumina Logo

Illumina

Slicedbread Logo

Slicedbread

Slaughter and May Logo

Slaughter and May

Healthgrades Logo

Healthgrades

Deliotte Logo

Deliotte

Jack Links Logo

Jack Links

Cognizant Microsoft Business Group (MBG) Logo

Cognizant Microsoft Business Group (MBG)

Boxit Document Solutions Logo

Boxit Document Solutions

ALS Life Sciences Logo

ALS Life Sciences

Kongsberg Maritime Logo

Kongsberg Maritime

MacDonald Humfrey (Automation) Ltd. Logo

MacDonald Humfrey (Automation) Ltd.

Schlumberger Logo

Schlumberger

Epic Games Logo

Epic Games

Bistech Logo

Bistech

Genus Breeding Ltd Logo

Genus Breeding Ltd

YearUp.org Logo

YearUp.org

ProgramUtvikling Logo

ProgramUtvikling

Microsoft Logo

Microsoft

Washington Department of Enterprise Services Logo

Washington Department of Enterprise Services

Washington Department of Transport Logo

Washington Department of Transport

Ghana Police Service Logo

Ghana Police Service

Nottingham County Council Logo

Nottingham County Council

Royal Air Force Logo

Royal Air Force

New Hampshire Supreme Court Logo

New Hampshire Supreme Court

Sage Logo

Sage

Qualco Logo

Qualco

Kongsberg Maritime Logo

Kongsberg Maritime

YearUp.org Logo

YearUp.org

Bistech Logo

Bistech

Hubtel Ghana Logo

Hubtel Ghana