Windows service doesn't start
Posted on 2014-09-16
I am having a C++ windows service (my own custom service), the installation of service (-i) works fine, however when I try to start the service using -s option, it gives me an error "Error 2: The system cannot find the file specified".
The GETLASTERROR API and its text does not tell me which file is it not able to find.
The same service works fine in debug mode (-d) option from visual studio.
On 3 other machines with the same set up, this service starts and works properly from service manager.
Can anyone of you help me identify because of which file is my service not starting? Also I have tried searching on Google (some site says it could VC re-distributable issues however I have verified them on other machines), also I have tried using dependency walker, even that has not helped.
Thanks in advance,