WCF service does not work without administrator privileges

I am new to WCF. I have a WCF service that I host in a WPF application, when it starts the service, it needs administrator rights. Every time I have to right-click the application that hosts my service, and select "Run as administrator." How to start a service in Windows 7?

+7
source share
2 answers

I could not understand what exactly asked my question, but I have a workaround. Administrator rights are only required if you use http bindings with WCF. I switched to netTcpBinding and it worked for me. This is not exactly what I asked, but it worked for me. Perhaps this will help someone encounter similar problems.

+11
source

Try using a higher port. Low ports can only be opened with administrator privileges.

You may also need to use NETSH:

At the cmd prompt, type:

NETSH

add urlacl url = http: // +: 8732 / user = DOMAIN \ user

+2
source

All Articles