installtuil – System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.
April 20, 2012The lesson for this one is when in doubt, explicitly run as administrator. Even though my colleague is an administrator to his Windows 7 machine, when he dropped to DOS prompt to install a service using installutil, he got an error message:
Installing assembly ‘C:\i\MSofVA\Development\FossProcessor\bin\Debug\FossProcessor.exe’.
Affected parameters are:
logtoconsole =
assemblypath = C:\i\MSofVA\Development\FossProcessor\bin\Debug\FossProcessor.exe
logfile = C:\i\MSofVA\Development\FossProcessor\bin\Debug\FossProcessor.InstallLog
Installing service FossService…
Creating EventLog source FossService in log Application…
Rolling back assembly ‘C:\i\MSofVA\Development\FossProcessor\bin\Debug\FossProcessor.exe’.
Affected parameters are:
logtoconsole =
assemblypath = C:\i\MSofVA\Development\FossProcessor\bin\Debug\FossProcessor.exe
logfile = C:\i\MSofVA\Development\FossProcessor\bin\Debug\FossProcessor.InstallLog
Restoring event log to previous state for source FossService.
An exception occurred during the Rollback phase of the System.Diagnostics.EventLogInstaller installer.
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.
Installing assembly ‘C:\i\MSofVA\Development\FossProcessor\bin\Debug\FossProcessor.exe’.
Affected parameters are:
logtoconsole =
assemblypath = C:\i\MSofVA\Development\FossProcessor\bin\Debug\FossProcessor.exe
logfile = C:\i\MSofVA\Development\FossProcessor\bin\Debug\FossProcessor.InstallLog
Installing service FossService…
Service FossService has been successfully installed.
Creating EventLog source FossService in log Application…
Committing assembly ‘C:\i\MSofVA\Development\FossProcessor\bin\Debug\FossProcessor.exe’.
Affected parameters are:
logtoconsole =
assemblypath = C:\i\MSofVA\Development\FossProcessor\bin\Debug\FossProcessor.exe
logfile = C:\i\MSofVA\Development\FossProcessor\bin\Debug\FossProcessor.InstallLog
To get around this, we simply right clicked on Command Prompt icon and chose to “Run as administrator“. Then the installutil call worked fine and dandy.
vary nice its work
by s November 13, 2013 at 9:33 amIt help me lot thanks
by Umamaheshwar December 12, 2015 at 11:01 amit’s realy helpfull thank you so much
by soniya December 25, 2017 at 7:50 amIt help me lot thanks
by soniya December 27, 2017 at 4:10 am