I created a service that runs fine on framework 4.5. I can install it and run it and everything is great.
However, when I went to deploy on a local server, they are only running Windows 2003, and the framework on it is still 2.0.
I talked to the guy in charge and informed him that I am using a lot of Linq commands and it would be very hard for me to rewrite all of that code, so he agreed to upgrade to 4.0 for me (the latest framework server 2003 can handle).
So I converted all of my projects to target 4.0, ran it in debug mode and the service (running as an application) runs fine.
The service installs fine (installutil.exe servicename.exe) but when I do a "net start" on it, it immediately returns "the service is not responding to the control function." I get no other useful information from the event logs.
As I understand it, this usually means that it has taken too long to start up, but the timeout is definitely set to 30000ms and it returns this well under a second. Nothing has changed other than converting the projects to framework 4.0 and I can find no information about "downgrading" from 4.5 to 4.0 and what I might be missing.
Does anyone have any ideas?