[WCF] HTTP could not register URL (wcf url) .Your process does not have access rights to this namespace

While hosting BasicHttpBinding WCF service in windows service , I came across the following error.

HTTP could not register URL (wcf url) .Your process does not have access rights to this namespace

The error occurs due to the service account does not have access rights to the namespace.

This is a HTTP WCF Service delegated error, (in other words, this won’t occur if you are hosting Named-Pipe WCF serivces)

To grant the service account access right, in Windows 2008

  1. Open command prompt with administrator account
  2. Execute the following command

netsh http add urlacl url=WCFURL user=DOMAIN\username

You should get a message saying “URL reservation successfully added

Advertisements