C# Windows Service Timeout on startup

后端 未结 5 437
小鲜肉
小鲜肉 2021-02-05 11:41

I\'m having difficulty trying to determine the cause of a timeout in a Windows Service I\'ve created with C#. I\'ve spent a considerable amount of time looking at several posts

5条回答
  •  隐瞒了意图╮
    2021-02-05 12:12

    I fixed similar issue by turning off publisher evidence generation in config file. The service also did not have authenticode signing but adding following line immediately fixed the issue on the machine where it has been reproduced consistently.

    
        
    
    

    Also recommended in this MSDN source:
    "We recommend that services use the element to improve startup performance. Using this element can also help avoid delays that can cause a time-out and the cancellation of the service startup. "

提交回复
热议问题