Hey All,
So I have a weird one for ya'll. Currently I have C# service that once started creates a thread which will read a stop tomcat if its started. Reads it to see if its been configured, if it hasn't it will write the file and then start it if not it will simply restart the tomcat service.
When I install my service(using NSIS and a DLL called simple service) I have some issues these two events show up in the event log simultaneously. First this one shows in the system log:
The (Service Name) service terminated unexpectedly. It has done this 1 time(s). The following corrective action will be taken in 60000 milliseconds: Restart the service.
Event ID:7031
and then this event in the Application log:
EventType clr20r3, P1 (Service name).exe, P2 1.0.0.0, P3 4c8ea600, P4 system.serviceprocess, P5 2.0.0.0, P6 4333aef4, P7 3a, P8 4e, P9 system.invalidoperationexception, P10 NIL.
Event ID:5000
After a few minutes or rebooting the system and logging in it will give me an message box with the information for the second error.
However after the install before rebooting. The Service is not only starting but it has rewritten the Tomcat Config File exactly the way I want it to. The error will never be seen again without uninstalling everything and reinstalling it.
Anyone have any idea on whats going on?
Thanks,
J