Re: Writing to event log in from web app

From: David Spectorman (davids@calcom.co.il)
Date: 07/29/02


From: "David Spectorman" <davids@calcom.co.il>
Date: Sun, 28 Jul 2002 23:47:01 -0700


Using the Event Log

Applications that must write to the Application event log
can do so while they are running as the ASPNET account. If
an application must create a new event log category, the
application must create a registry key under the
HKEY_LOCAL_MACHINE registry hive, which the ASPNET account
cannot do.

To create the category at run time, you must enable
impersonation, and then you must impersonate an account
that has more access rights. Alternatively, an
administrator can create the category, and the application
can write to the category at run time.

If applications must create new event log categories,
create the categories at installation. After the category
is created, the ASPNET account can write to the
Application event log.

(see: http://support.microsoft.com/default.aspx?scid=kb;en-
us;Q317012
)



Relevant Pages

  • RE: Writing to the EventLog
    ... In the meantime I was able to get the event log ... >A possible complication arises from the fact that in IIS ... >ACLs to allow access to the ASPNET account while denying ... >!Subject: Writing to the EventLog ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: I cant install any Nortons Software
    ... thing and disabled the firewall. ... I get MSIInstaller errors in the Event Log ... > antispyware applications and passive immunizations from those applications ... > Cleaned with any antispyware products or scanned with any online-AV ...
    (microsoft.public.security)
  • Re: Exception Logging in C#
    ... coupled applications doing level 2 to level 5 controls. ... being written by third party customer consultants or the actual customer ... logging system for the process alarms but used the event log for system ... both in design and in implementation. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Eventlog permissions error
    ... Without impersonation everything should run under the ASPNET user account, ... 2.Ensure the anon user has permissions to write to event log e.g. by adding ... Note that the default IUSR_MACHINENAME anonymous account does NOT appear to ... string user3 = System.Security.Principal.WindowsIdentity.GetCurrent.Name; ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Remote access to event logs
    ... > from their machine's Event Log window. ... >>> Bryan Fairchild ... >>> of computer systems and applications. ...
    (microsoft.public.security)