OnStart Not Called in .Net 1.1 Windows Service -


I have a Net Framework 1.1 Windows service that works on one server, but do not call the onstart method on any other is being done. I have the trace statement as the first line in the override and it is not being executed. No exception is thrown away and Windows Service Control Manager thinks the service has started properly.

Does anybody know if the Ostart method is being called?

EDIT: Configure settings for trace output.

  & lt; Configuration & gt; & Lt; System.diagnostics & gt; & Lt; Trace autoflush = "true" indentsize = "4" & gt; & Lt; Listeners & gt; & Lt; Add name = "LogFileWriter" type = "System.Diagnostics.TextWriterTraceListener, System" initializeData = "c: \ interface.log" /> & Lt; / Listeners & gt; & Lt; / Trace & gt; & Lt; /system.diagnostics> & Lt; / Configuration & gt;  

If you are writing your trace to an EventLogTrace listener then it is possible that the service The account does not have sufficient authority to access the event log on another machine. See my answer to this question:

The other activities that occur in the on-the-go event suggest that the incident is not firing?


Comments