Re: Windows Service - Event Log

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Your problem is that you are trying to create your own private log from
within your service, only admins are allowed to do that, that would mean
that your service needs to run with administrative privileges (for instance
as SYSTEM) only to create a log which is a bad idea. So my suggestion is to
have a separate program that creates the log and let the administrator run
this program at install time.

Willy.



<pisquem@xxxxxxxxxxx> wrote in message
news:1151500266.135651.55510@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|I am currently developing/building this on a Windows XP machine (this
| is where the problem is currently) but it will be deployed to a Windows
| Server 2003.
|
| As for the comments about the OnStart, is it suggested not put the
| writing to logs in this event? I want to have an entry 'Service started
| successfully' isnt the that best spot for it.
|
| With regards to permission and access rights, what is the final verdict
| on this?
|


.



Relevant Pages

  • Re: should i installed SP 2 in my PC?
    ... > suggestion or advice to help me out. ... using Windows XP "prettifications". ... You should at least turn on the built in firewall. ... My suggestion - upgrade. ...
    (microsoft.public.windowsupdate)
  • RE: Right click on "Properties" on removable media = Complete hang
    ... Suggestion One: ... Description of the Windows 2000 System File Checker ... drivers or programs that are installed in your computer. ... The system is running fine and there are no hardware problems nor hardware ...
    (microsoft.public.windows.server.migration)
  • Re: Internet Explorer Registry setings
    ... I will assume a "Windows" operating system is ... You should at least turn on the built in firewall. ... My suggestion - upgrade. ... This is spyware. ...
    (microsoft.public.security)
  • Re: Updating.
    ... Cumalative Security Update for Internet Explorer 7 for Windows XP ... When it lists what it finds - install the critical ones. ... Sometimes they have to proceed to method two from the first suggestion. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: No Users List Starting Windows XP
    ... Thanks for the suggestion. ... that our problem involves a deleted registry key rather than deleted files ... The boot up stops at the windows logo ... If I try and boot in safe mode the same thing ...
    (microsoft.public.windowsxp.general)