Permissions required to write to the Application Log
From: Patrick (patl_at_reply.newsgroup.msn.com)
Date: 04/27/04
- Next message: Brian: "RE: KB835732 uploaded and installed through KB835732 flaw"
- Previous message: jcarson: "How to refresh local machine group membership rights without logoff"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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?
- Next message: Brian: "RE: KB835732 uploaded and installed through KB835732 flaw"
- Previous message: jcarson: "How to refresh local machine group membership rights without logoff"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|