Monday, March 8, 2010

Reserving HTTP namespace for use by self-hosted WCF application

I ran into the following error while creating a WCF application that is not hosted in IIS:

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

The solution on Vista is to reserve the namespace for the user that wants to bind to this URI, which must be done as an administrator:

netsh http add urlacl url={url} user={user\domain}

See MSDN for more detail, and don't forget that you will need to configure your firewall if you want this address to be externally visible.

0 comments:

Post a Comment