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

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

    Release build did not work for me, however, I looked through my event viewer and Application log and saw that the Windows Service was throwing a security exception when it was trying to create an event log. I fixed this by adding the event source manually with administration access.

    I followed this guide from Microsoft:

    • open registry editor, run --> regedit
    • Locate the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application
    • Right-click the Application subkey, point to New, and then click Key.
    • Type event source name used in your windows service for the key name.
    • Close Registry Editor.

提交回复
热议问题