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

后端 未结 30 1236
無奈伤痛
無奈伤痛 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:24

    This problem usually occurs when there is some reference missing on your assembly and usually the binding fails at the run time.

    to debug put Thread.Sleep(1000) in the main(). and put a break point in the next line of execution.

    Then start the process and attach the debugger to the process while it is starting. Press f5 after it hit the break point. It will throw the exception of missing assembly or reference.

    Hopefully this will resolve this error.

提交回复
热议问题