Error 1053: the service did not respond to the start or control request in a timely fashion

后端 未结 30 1194
無奈伤痛
無奈伤痛 2020-11-29 18:47

I have recently inherited a couple of applications that run as windows services, and I am having problems providing a gui (accessible from a context menu in system tray) wit

30条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-29 19:26

    I'm shooting blind here, but I've very often found that long delays in service startups are directly or indirectly caused by network function timeouts, often when attemting to contact a domain controller when looking up account SIDs - which happens very often indirectly via GetMachineAccountSid() whether you realize it or not, since that function is called by the RPC subsystem.

    For an example on how to debug in such situations, see The Case of the Process Startup Delays on Mark Russinovich's blog.

提交回复
热议问题