RE: Exception Management App Block - System.ComponentModel.Win32Except



Hi Steven,

Welcome to ASP.NET newsgroup.
>From your description, you're getting the Access Denied WIN32 exception
when using the Enterprise Library's Exception Handling Application block
,yes?

I'm sure you're using the LoggingHandler , and specifying some eventlog
entry to log into? Is the problem occurs just when you use the default
logging setting to log some entry into the Application eventlog?

Also, as you mentioned that you're using impersonation in your asp.net
application, did you impersonate the client user's idenity or a fixed
account. Is it possible that the impersonated account dosn't have the
proper permission to access the eventlog? I suggest that you turn off the
impersonate and switch your process identity to "LOCAL SYSTEM" and test
again to see whether it works. This can ensure that the problems is caused
by account permission issue.

If there is any further findings, please feel free to post here also.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

.



Relevant Pages

  • Re: Sql Reporting Serviced - > ASP.NET ACCESS DENIED!
    ... The account you are logging in to when on the server doesn't have the ... do you have <Impersonate> set to True? ... > Exception Details: System.UnauthorizedAccessException: Access to the path ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: How to use WindowsPrincipal properly??
    ... > If you want to check if the user is in the local computers security group ... > used by the general public you have to use Basic Authentication of course. ... You can logon a set account ... > WindowsIndentity which is then used to Impersonate. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: Impersonate
    ... saving a Excel document in ASP.NET webapplication, ... Regarding on the problem you mentioned, I think the account is the first ... You should either impersonate through the web.config setting or use code. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: SetPassword access denied
    ... Developer's Guide to Directory Services Programming". ... administrator who is delegated admin rights on that OU. ... the same account logged in interactively on the same box can execute the ... I also wonder why you impersonate in code rather than having the service ...
    (microsoft.public.windows.server.active_directory)
  • Re: Impersonating Users
    ... i'm not sure about the cert store impl in NT, ... > running the service as Local System Account, ... > CERT_SYSTEM_STORE_CURRENT_USER fails to find the cert. ... > //Logon to user acount and Impersonate. ...
    (microsoft.public.platformsdk.security)

Loading