Does WCF always needs my host to have administrator privileges?

后端 未结 2 558
谎友^
谎友^ 2021-01-25 01:05

I\'m following this tutorial and seems like to implement WCF in my application it would need to run with administrator privileges.

I want to use remoting only

相关标签:
2条回答
  • 2021-01-25 01:42

    It could well be that because you are registering the endpoint information programatically that you need the elevated permissions. WCF does not require them in most circumstances.

    Services such as this one require permission to register HTTP addresses on the machine for listening. Administrator accounts have this permission, but non-administrator accounts must be granted permission for HTTP namespaces

    0 讨论(0)
  • 2021-01-25 01:49

    Administrative privileges are only needed for the HTTP URL namespace reservations. If you are using named pipe communication (which would be the recommended way to go for inter-process communication), then you can run fine as a normal user.

    0 讨论(0)
提交回复
热议问题