PeopleSync Knowledge Base

Service fails to start - HttpListenerException

Problem

After starting the PeopleSync Service, it fails with the following event in Application Event Log:

Log Name: Application
Source: .NET Runtime
Event ID: 1026
Description:
Application: Agent.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Net.HttpListenerException
at System.Net.HttpListener.AddAllPrefixes()
at System.Net.HttpListener.Start()
at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()

Exception Info: System.ServiceModel.AddressAccessDeniedException
at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
…

Solution

The PeopleSync Service cannot create an HTTP listener due to lack of permissions.

Solution for PeopleSync Backend version < 21.2.x

  1. Add the account running the PeopleSync Service to the local administrators group of the computer where PeopleSync Service is running.

  2. Start PeopleSync Service.

If the service account cannot be permanently added to the local administrators group due to company policy, please update to PeopleSync version 21.2 or newer.

Starting with PeopleSync version 21.2, the account running PeopleSync service no longer needs to be a member of the local administrators group.

Solution for PeopleSync Backend version 21.2.x and above

  1. Open an administrative command prompt on the computer running PeopleSync Service.

  2. Run the following command:
    netsh http add urlacl url=http://+:46232/ user=everyone

  3. Start PeopleSync Service.