While working with WCF services over HTTP you may come across this error:
HTTP could not register URL http://+:8000/OrderManagerService/. Your process does not have access rights to this namespace.
Using WCF over HTTP either requires the use of a host (like IIS), or a manual configuration of HTTP Settings. In this case it really easy to do. The tool is different for different OS though.
Windows Server 2003/Windows XP - use the HttpCfg.exe tool
Windows Vista/Windows Server 2008 - configure these settings with the Netsh.exe tool (you need to deal with UAC here). The steps are mentioned below:
1. Go to Start > Accessories > Command Prompt > Right-Click (Run as Administrator)
2. Execute this at the command prompt:
netsh http add urlacl url=http://+:8000/OrderManagerService user=DOMAIN\username
8000 here is your port number, you can replace this with a port number of your choice (using which your WCF service is hosted)
You should get a message saying “URL reservation successfully added”
What you just did is to configure a Namespace registration. 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. You will find more information here. There are other useful information on this page like Configuring SSL Certificates etc.
I would also recommend this related post.
PingBack from http://windows.wawblog.info/?p=34477
This post goes right to the point. I have the same problem in Windows 7. This fixes it. Thanks Anirban
yes.it works.thanks Anirban