title: .NET Windows service working only with debug binaries
body: <p>I have installed a Windows service developed in c#. The service has been installed by an msi package created by a visual studio installer project. When the service is installed with binaries coming from a release  build it fails to start and the service console returns the following error message:"Error 1053: The service did not respond to the start or control request in a timely fashion". When the service is installed with debug binaries everything works as expected. I have added logs for every exception that occurs in the service's constructor, in the OnStart method, in the main method, and in the DoWork method of the main working thread of the service. The OnStart method of the service exits almost immediatly as it just initializes some variables from the configuration file and then starts the main working thread. I get no exception logged on the event viewer. I am clueless, how could I debug what is happening with the release binaries?
  Thanks.</p>