Event Log Write access under ASP.NET

From: Jeremy Lew (jslew_at_hotmail.com)
Date: 04/21/05


Date: Thu, 21 Apr 2005 10:34:35 -0400

I'm trying to write to the Windows event log from an ASP.NET application
which is impersonating a local user (through p/invoke LogonUser and .NET
impersionation). Although the user I am impersonating can write
successfully when interactively logged on, I get an Access Denied result
from the interop call to advapi32's RegisterEventSource when impersonating
this same user under ASP.NET. If I make said user member of Administrators,
it works, but I have not been able to figure out what permission or
privilege is necessary for the non-admin to function in this scenario.

Anyone have a guess as to why this may be or what permissions to try?

Thanks,
Jeremy



Relevant Pages

  • RE: Encrypting Data EDRA Conenction string
    ... impersonating the worker thread will running under the client's logon ... session whose permission set is quite important. ... Encrypting Data EDRA Conenction string ...
    (microsoft.public.dotnet.framework)
  • RE: System.UnauthorizedAccessException: Access to the path "\Fped-d3g
    ... "Tushar Shelar" wrote: ... > web server) when the user clicks a button. ... If the application is impersonating via <identity ... The folder in which the file is suppose to be created has permission ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Event Log Write access under ASP.NET
    ... > LogonUser and .NET impersionation). ... > impersonating can write successfully when interactively logged on, ... > been able to figure out what permission or privilege is necessary for ...
    (microsoft.public.windows.server.security)
  • Re: Event Log Write access under ASP.NET
    ... > LogonUser and .NET impersionation). ... > impersonating can write successfully when interactively logged on, ... > been able to figure out what permission or privilege is necessary for ...
    (microsoft.public.dotnet.security)
  • Event Log Write access under ASP.NET
    ... which is impersonating a local user (through p/invoke LogonUser and .NET ... Although the user I am impersonating can write ... but I have not been able to figure out what permission or ...
    (microsoft.public.dotnet.security)

Quantcast