New Windows Service installed, fails to start: “System error 2 … system cannot find the file specified”

后端 未结 6 1761
广开言路
广开言路 2021-02-04 23:43

I have installed several other custom .Net windows services successfully. A new one I had recently written was very similar to the others and while it installed without error -

6条回答
  •  执笔经年
    2021-02-05 00:14

    In my case, the problem was caused by a mistake in the service start routine. DriverEntry (in my case it was a kernel-mode driver) returns a bad status value. I think this situation applies to user mode too.

提交回复
热议问题