M
Mr. Arnold
Willy Denoyette said:The logs I posted are from YOUR project, only change I made was specifying
an absolute path for the log file, following is why I did.
The log file of this *Service* is NOT in the exe path, the log file you
see in the exe path is the one created when running installutil.
You are writing to a file that does not specify a path ( a relative path),
that means you are writing your logfile in the home of the application
that started the service. Services are started by the SCM which has it's
home path set to Windows\system32, your service will try to create/write
to windows\system32.
If your service runs as LocalSystem, you should find the log file in
Windows\system32 (but you should never do this), if it runs as
LocalService, you won't see a logfile at all, this account cannot write to
the Windows\system32, and you fail to check the result of the logging.
What's wrong writing to his own System Application Eventlog?