Build with TeamCity ends up in error 1053 Service didn't respond to start
Hello,
I have a solution that builds properly on my machine and that I have no trouble installing as a service on my pc too with the following command:
sc.exe create "Hydra.Service" binPath= D:\Homeware\0.1.0-servicepackaging6777\Hydra.Service.exe DisplayName= "Hydra.Service" depend= "/" start= "auto" obj= "myAccount" password= "myPassword"
This build uses Framework 4 in my Visual Studio (2015), and the target platform is "Mixed Platforms". It works perfectly fine on my machine.
When trying to put that on a build server, I can't use the produced binaries to set-up this service again. I tried to copy the artifacts of compilation and paste them on my personal machine, but the service (that was working with a local build) immediately ends up in error 1053:
"The Hydra.Service service failed to start due to the following error: A timeout was reached (30000 milliseconds) while waiting for the Hydra.Service service to connect.
The service did not respond to the start or control request in a timely fashion."
I have read so many things on the internet, especially a possible problem of login, but I am using my own administrator login and that shouldn't be an issue (I make it work the same way with my local build).
Any lead to help solving this problem? Can it be an issue with the target platform ? Below a screen of my TC build setup.
Thanks!
Pierre

Please sign in to leave a comment.
I have added EventViewer logs in my OnStart() method, but it'll basically give me the same error that pops-up when trying manually to start the server. Not helping.
That was an issue with the platform targeted by the build configuration. Basically moved all to Any CPU as there seemed to be a few inconsistencies.