Cannot open log for source {0}. You may not have write access.

From: Magdelin (magdelinsuja_at_newsgroups.nospam)
Date: 08/23/04


Date: Mon, 23 Aug 2004 12:31:06 -0700

Hi,

I have hosted my .NET Remote application in IIS 6.0 on Win2K3. Application
performs "Basic" authentication and identity is impersonated in web.config
file. Errors and exceptions from the .net remote application are logged to a
custom event log on the application server on which the application is
hosted. The error logging fails with the message "Cannot open log for source
{0}. You may not have write access.".
Registry on the server already has a Key for both the custom event log and
custom event source. I have granted read/write permission to the
HKLM/CurrentControlSet/Services/Event log key in the registry and all its
subkeys to all the users who might probably get impersonated in the
application. I have also granted read/write permission to the above mentioned
users for the <customeventlog>.evt file within the
c:\windows\system32\config.
But, the application still throws security exception with the message
"Cannot open log for source {0}. You may not have write access." whenever the
application tries to write the custom event log.

What would the minimum set of permissions that have to be granted to the
impersonated users in ASP.NET application to allow the users to be able to
write to custom event logs setup on application/web server?

Any quick response or pointers would be greatly appreciated.

Thanks in advance.
Magdelin



Relevant Pages

  • RE: Cannot open log for source {0}. You may not have write access.
    ... application and services on a Windows Server 2003. ... Now the accounts used in the application pool were created by copying the ... > custom event log on the application server on which the application is ... I have also granted read/write permission to the above mentioned ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Cannot open log for source {0}. You may not have write access.
    ... Errors and exceptions from the .net remote application are logged to a ... custom event log on the application server on which the application is ... I have also granted read/write permission to the above mentioned ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Logging errors from Web services
    ... why not have all your web services write to a custom event log on the ... > I am trying to write exception logs from my various webservices to a log ... > file in the server. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)