logging to Windows Event Log in IIS 7.5

Topics: Logging Application Block
Mar 29, 2010 at 6:34 PM


i am trying to log to the application eventlog in a windows server 2008 R2 IIS 7.5 environment and am alwyas getting a error: Inaccessible logs: Security.

the application pool is set to use IIS APPPOOL\DefaultAppPool (which is the default)

what do i have to set in registry as the permission to access the logs in key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog

using EntLib 4.1 and .Net 4.0 RC together with studio 2010 RC




Mar 30, 2010 at 8:48 AM
Edited Mar 30, 2010 at 10:41 AM

Hi Chris,

Is your App logging correctly if run on debug mode? Have you already installed the EntLib InstallServices.bat? Also, check if the Identity set in your AppPool have administrative privilege to create an event source.


Mar 31, 2010 at 4:38 PM

Hi ginkaptain,

thanks for the help. we now created our own logs in windows eventlog and with the created sources the logging works. seems that the event source used before wasnt existing and therefore it gave the errors.