Showing posts with label WCF. Show all posts
Showing posts with label WCF. Show all posts

Wednesday, October 12, 2011

AddressAccessDeniedException in WCF 2010

Today when executing the service it gives the below exception.
HTTP could not register
URL http://+:8002/.../. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for detail
s).
The reason for the above exception is given in the book Programming WCF Services O'REILLY by JUVAL LOWY
How to instruct windows to register the URL
  • Go to programs and select "Visual Studio Tools"
  • Right click on Visual Stutdio Command Prompt and select Run as administrator
We get a command prompt shows the path "C:\WINDOWS\system32" We have to give netsh http add urlacl url=http://+:8002/ user="MachineOrDomain\UserName"