user786981
user786981

Reputation:

WCF Service not running without Administrator rights

I am new to WCF. I have a WCF service which I am hosting in a WPF application, while running the service it requires admin rights. Every time I have to right click the application which host my service and select "Run As Administrator". How can I make the service run on Windows 7?

Upvotes: 8

Views: 7946

Answers (2)

user786981
user786981

Reputation:

I could not get what exactly my question was asking, but I got a workaround. Admin rights are needed only if you are using http bindings with WCF. I switched to netTcpBinding and it worked for me. It's not exactly what I asked, but worked for me. Maybe it will help someone facing similar issues.

Upvotes: 12

flayn
flayn

Reputation: 5322

Try using a higher port. Low ports may only be opend with administrative rights.

You might also have to use NETSH:

In cmd promt enter:

NETSH

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

Upvotes: 2

Related Questions