2009年9月11日

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

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

HTTP could not register URL (your 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=YourWCFURL user=DOMAIN\username

You should get a message saying “URL reservation successfully added


Reference:

沒有留言:

About Me