tags:

views:

1235

answers:

3

I get the following error when going through the WCF tutorial.

HTTP could not register URL http://+:8000/ServiceModelSamples/Service/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details).

Is this something caused by a restriction on Windows 7?

A: 

Are you trying to use port 8000? Are you trying to use a host named "+"?

John Saunders
+3  A: 

The issue is that the URL is being blocked from being created by Windows.

Steps to fix: Run command prompt as an administrator. Add the URL to the ACL

netsh http add urlacl url=http://+:8000/ServiceModelSamples/Service user=mylocaluser
Joshua
Glad you fixed that. What did the "+" mean?
John Saunders
I have a hunch that it means a generic local IP.
Joshua
Note: You pretty much have to enter url=http://+:port/path exactly. url=http://address:port/path did not work for me, as you would think it might. Also note that you have to use the network server as your user ("NT AUTHORITY\NETWORK SERVICE", if that's what your service's installer is set to.
Mike Pateras
+2  A: 

If your running via the IDE, running as administrator should help. To do this locate the Visual Studio 2008/10 application icon, right click it and select "Run as administrator"

Stephen Newman