S
SJ
Hi all,
I'm having a problem in ASP.NET enabling write access to the system event
log using EMAB, which uses System.Diagnostics.WriteEntry under the covers.
Specifically:
* The web application has anonymous authentication (only) enabled.
* The account used is IUSR_mypc
* I use InstallUtil to create the 2 source entries in
HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\Application. These are
ExceptionManagerInternalException and ExceptionManagerPublishedException (
the defaults )
* In Web.config: authentication=none (or Windows).
Whenever I set identity impersonate to "true", I get
'System.ComponentModel.Win32Exception: Access is denied', no matter what
permissions I grant on the registry keys (I've tried from the specific
source keys to the Eventlog root).
I thought that in this case, the ASPNET account would be used to impersonate
the (anonymous) user. As I had granted full control to the registry keys to
this account, I thought that there should be no problem writing to the event
log.
I've also tried the IUSR account and numerous others. There does not seem to
be a single account I can use to grant these permissions. Does anyone know
if this is correct?
Thanks in advance
Simon
I'm having a problem in ASP.NET enabling write access to the system event
log using EMAB, which uses System.Diagnostics.WriteEntry under the covers.
Specifically:
* The web application has anonymous authentication (only) enabled.
* The account used is IUSR_mypc
* I use InstallUtil to create the 2 source entries in
HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\Application. These are
ExceptionManagerInternalException and ExceptionManagerPublishedException (
the defaults )
* In Web.config: authentication=none (or Windows).
Whenever I set identity impersonate to "true", I get
'System.ComponentModel.Win32Exception: Access is denied', no matter what
permissions I grant on the registry keys (I've tried from the specific
source keys to the Eventlog root).
I thought that in this case, the ASPNET account would be used to impersonate
the (anonymous) user. As I had granted full control to the registry keys to
this account, I thought that there should be no problem writing to the event
log.
I've also tried the IUSR account and numerous others. There does not seem to
be a single account I can use to grant these permissions. Does anyone know
if this is correct?
Thanks in advance
Simon