Windows Service not starting on Windows 10 upgrade

前端 未结 4 2106
既然无缘
既然无缘 2021-02-08 13:05

I wrote a windows service it it works and STARTS fine in most operating systems. I have narrowed down the fact that Windows 10 upgraded from windows 8 causes a problem where th

4条回答
  •  你的背包
    2021-02-08 13:35

    What fixed it for us is, if you can change the service executable yourself:

    In the project file change the Prefer 32-bit flag to false, then reinstall the service.

    Check your service with CorFlags.exe. The 32BITREQ and 32BITPREF should be 0.

    Version   : v4.0.30319
    CLR Header: 2.5
    PE        : PE32
    CorFlags  : 0x1
    ILONLY    : 1
    32BITREQ  : 0
    32BITPREF : 0
    Signed    : 0
    

提交回复
热议问题