By keeping logs in each code block in service and as suggested by @RLWA32 , I was be able to identify the issue related to one of the application registry setting missing. After that registry key, service has started running without any issue.
VC++ Windows Service (VS2019) could not start and displays Error 1053 in Win Server 2019
VC++ Windows Service (VS2019 Platform toolset, Win SDK 10) is not getting started and displays alert message like "Windows could not start the <service name> service on Local computer.
Error 1053: The service did not respond to the start or control request in a timely fashion".
It is happening after it is getting migrated to Win Server 2019. Same service works fine in Win Server 2012 without any issue. Another vc++ windows services is running fine in the same server. Issue related service is using RPC and other components when compared to the one which works fine.
Have already tried adding ServicesPipeTimeout in registry, Admin mode to run service etc but no luck.
Please suggest if anyone has any clue on this issue.