15.02.2015 Views

C# 4 and .NET 4

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

integrating WCf <strong>and</strong> enterprise services ❘ OC119<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Before you can start the server application you need to change the security to allow the user that runs the<br />

application to register ports for listening. Otherwise a normal user is not allowed to register a listener port.<br />

On Windows 7 you can do this with the netsh comm<strong>and</strong> as shown. The option http changes the ACL for<br />

the HTTP protocol. The port number <strong>and</strong> the name of the service are defined with the URL, <strong>and</strong> the user<br />

option specifies the name of the user that starts the listener service:<br />

netsh http add urlacl url=http://+:8088/NorthwindService user=username<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!