I was recently debugging a WCF self host service in Windows 7 and I got the below exception.
"HTTP could not register URL http://+8732/service. Your process does not have access rights to this namespace."
After seeing this exception I found that I need to configure namespace reservations. I opened the VS 2010 command prompt in Administration mode and I ran the below command.
Netsh http add urlacl=http://+:8732/service user=\Everyone
This command adds an URL reservation for the specified URL namespace for the users.
After configuring namespace reservation, my self host WCF service got worked. The other alternative to use Netsh http command is to run the VS 2010 in administrative mode.
What is Namespace Reservations?
Namespace reservation assigns the rights for a portion of the HTTP URL namespace to a particular group of users. A reservation gives those users the right to create services that listen on that portion of the namespace. Reservations are URL prefixes.