Cannot Start Windows Service in NetworkService account

前端 未结 3 1560
甜味超标
甜味超标 2020-12-05 21:20

I have a windows service project implementation that I am trying to install as network service.

process = new ServiceProcessInstaller();
process.Account = Se         


        
3条回答
  •  离开以前
    2020-12-05 21:55

    I would check that the Network Service account has permissions to execute. Steps to check:

    1. In Windows explorer go to the folder containing the binaries of the service
    2. Right-click on the folder > Properties > Security tab > Edit button
    3. Add > "NETWORK SERVICE" > OK
    4. Give it full control (just to test and then reduce permissions till it working)

    screenshot

提交回复
热议问题