Mar 252008
 

Before you try running a Console Application or Windows Service application that hosts a WCF service with basicHttpBinding or wsHttpBinding, see this MSDN article about “Configuring HTTP and HTTPS”. If you are WAS-hosted or Web App-hosted, the urlacl entries are made on your behalf.


You can view the current entries with “netsh http show urlacl“. To make the changes, you’ll need to “Run as Administrator” when going into your Command Prompt.


I decided to use the following command:



netsh http add urlacl url=http://+:8080/ user=Everyone


You should adjust the ports and/or path as necessary for your situation:



netsh http add urlacl url=http://+:8080/MyConsoleAppHostedService user=DOMAINuser


netsh http add urlacl url=http://+:8091/MyWindowsServiceHostedService user=SYSTEM

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

Time limit is exhausted. Please reload the CAPTCHA.