Allowing Web Service host to run locally without Administrator rights


If you’re writing WCF Web Services you maybe came to the point when you needed Administrator rights to start the Web ServiceHost. As a matter of fact the only thing you need is the right to use a that URL space.

So for  a WCF Web Service running on http://localhost:80/TestService/Ep2 you would use the netsh command line tool to set the correct rights.

Step 1: Start an Administrator-Commandline

Step 2: run “netsh http add urlacl url=http://+80/TestService/Ep2 user=SONES\bietiekay

(SONES\bietiekay = the Domain+User to grant the right)

netsh

  1. #1 by Paulina on May 25, 2012 - 14:02

    I realize it’s an old post, but has anything changed on the matter? Is it possible to run host app locally without having to reserve url?

Comments are closed.