I created an application as a Windows Service which works fine on my workstation running Windows 8 x64, and writes several events in the Application eventlog on OnStart(). I used InstallUtil to install it on a Windows 2012 machine and it stops right after it starts. The only thing I see regarding it in the eventlog is under System:
The Foo service entered the stopped state.
- I can't even debug it on that machine without installing VS2012 which I don't want to do because it is in a production environment.
- The application depends on one DLL which is copied locally.
- .NET Frameworks 2.0 to 4.5 are installed on both machines.
- I tried Run as Administrator under Compatibility but it's set to run under LocalService anyways so it should have permission to do everything it's tasked to do...
EDIT 1: why would you downvote the question without even leaving a remark as to why it's bad?