Event log permissions while impersonating

Discussion in 'ASP .Net Security' started by spamisuseless1@gmail.com, Jan 21, 2007.

  1. Guest

    Hi,
    I'm trying to write to the event log while in
    WindowsIdentity.Impersonate code segment.
    I get this exception:
    "A first chance exception of type 'System.InvalidOperationException'
    occurred in system.dll
    Additional information: Cannot open log for source {0}. You may not
    have write access."
    It is a Asp.Net 1.1 application configured with <identity
    impersonate="false" /> and anonymous access only in the IIS.
    The service account is granted TCB (Act as part of OS) privilege.
    The event source was created manually in the registry.
    Running ProcMon.exe (sysinternals) reveals no access denied events.

    Any ideas what are the permissions required to write events to the
    event log?

    Thanks,
    Yossi
     
    , Jan 21, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Henrik_the_boss
    Replies:
    0
    Views:
    2,712
    Henrik_the_boss
    Nov 5, 2003
  2. =?Utf-8?B?U3VkaGlyIERhcmJoYQ==?=

    Unable to set permissions on VSWebCache folder error in Event Log.

    =?Utf-8?B?U3VkaGlyIERhcmJoYQ==?=, Feb 3, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    596
    =?Utf-8?B?U3VkaGlyIERhcmJoYQ==?=
    Feb 3, 2005
  3. =?Utf-8?B?VG9tIFdpbmdlcnQ=?=

    My.Log.Writeexception not writing to Application Event Log.

    =?Utf-8?B?VG9tIFdpbmdlcnQ=?=, Jan 20, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    2,413
    =?Utf-8?B?VG9tIFdpbmdlcnQ=?=
    Jan 20, 2006
  4. Tom Wingert
    Replies:
    0
    Views:
    376
    Tom Wingert
    Jan 12, 2006
  5. Replies:
    0
    Views:
    1,418
Loading...

Share This Page