I keep getting the error below when every I try to use the InstallUtil to install my .NET service. I put "installutil myservice.exe" into command prompt and then get the error. Any idea of what the problem is? Do I need to add another parameter?

An exception occurred during the Install phase. System.Security.SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.

link|improve this question
1  
Does your service write to the Security log? – Christopher Feb 14 '11 at 20:10
feedback

2 Answers

up vote 2 down vote accepted

Run installutil as administrator may help.

link|improve this answer
feedback

Try to give the NetworkService (or whatever account running the serviec) read permission on the EventLog/Security key.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.