Permissions required to write to the Application Log

From: Patrick (patl_at_reply.newsgroup.msn.com)
Date: 04/27/04


Date: Tue, 27 Apr 2004 16:40:09 +0100

I have an ASP.NET application that tries to write to the Application Log in
the Event Viewer.

The Event Source has been created under the Registry at
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application

When the code is however trying to write to the log as that source, an error
is returned:
Cannot open log for source {0}. You may not have write access. --->
System.ComponentModel.Win32Exception: Access is denied

Changing the ACL of c:\winnt\system32\config\AppEvent.cfg, giving *Everyone*
Full Control (as a test) does not rectify the problem!

Note
1) Environment- IIS5 on Windows 2000 SP4
2) The machine from which IIS is run (which is trying to write to Event
Viewer through ASP.NET) is a domain controller
3) ASP.NET should be running as domainName\IWAM_MachineName

What other permissions are required to give permission to ASP.NET to write
to the event viewer?



Relevant Pages

  • Re: dcom event id 10020
    ... com security tab, under both access permissions and launch and activiation ... permissions click on the edit default, then make sure the administrator local ... > You can access Event Viewer by selecting Start, Administrative Tools, ...
    (microsoft.public.windowsxp.general)
  • Re: dcom event id 10020
    ... You can access Event Viewer by selecting Start, Administrative Tools, ... It contains Access Control Entries with permissions that are ...
    (microsoft.public.windowsxp.general)
  • Re: Access is denied - WINDOWS App!
    ... Check the event viewer and see if there is a related ... Error entry under applications. ... What you might find is that ASPNET ... have to set these permissions on the share as well. ...
    (microsoft.public.dotnet.languages.csharp)
  • Event Viewer Issues
    ... When I go to open Event Viewer, I get an "Access Denied" error. ... Permissions ... To prove this, I open via LOG FILE, all events. ... event viewer, open normally, erase all events, close, and each subsequent ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Server 03 / exchange 03 disaster recovery / re-mount databases
    ... look in your event viewer ... it was a permissions issue in the system ... > manager regarding the MSExchangeSA not starting.... ...
    (microsoft.public.exchange.admin)