Re: ASPNET can't write in event log on win XP

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Kevin Spencer (kevin_at_DIESPAMMERSDIEtakempis.com)
Date: 01/18/05


Date: Tue, 18 Jan 2005 09:13:14 -0500


> I didn't have this problem on windows 2000. But since I'm on Win XP now, I
> have to solve this. I set full control to everyone on every drive of my
> computer and it still not working...

You might want to undo that. Kind of dodgy in terms of security.

Changing file and folder permissions isn't going to help anything. You need
to change permissions for the Event Log. That's not a drive, and it's not a
folder. See the following article (which I Googled) to find out how:

http://searchvb.techtarget.com/vsnetTip/1,293823,sid8_gci887779_tax293033,00.html

-- 
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.
"Stephane" <Stephane@discussions.microsoft.com> wrote in message 
news:A55975E2-6C98-47FB-B07C-E99B14421E24@microsoft.com...
> Hi,
>
> I'm sorry, this question is also posted in dotnet.framework, I don't know 
> in
> which newsgroup my question belongs to...
>
> I'm trying to write in the event log and it looks like it's any of my
> applications which are called by ASP.NET that are having trouble with 
> event
> log. Here's the
> error:
>
> System.InvalidOperationException: Cannot open log for source {0}. You may
> not have write access. ---> System.ComponentModel.Win32Exception: Access 
> is
> denied
>
> I didn't have this problem on windows 2000. But since I'm on Win XP now, I
> have to solve this.  I set full control to everyone on every drive of my
> computer and it still not working...
>
> Any idea of how to set permissions so ASPNET can write in event log in Win 
> Xp?
>
> Thanks,
>
> Steph
>
> 


Relevant Pages

  • Consider Windows XP File Security and Group Policies
    ... If you are running Windows XP and are using the NTFS file system, ... Account from being able to purge its history footprint files. ... Changing Folder permissions to Read-Execute instead of Full ... you globally apply Full Control for the Administrators group and the SYSTEM ...
    (microsoft.public.windowsxp.general)
  • Re: start menu My Documents etc dont work
    ... Administrators - Full Control ... Ramesh, Microsoft MVP ... Windows XP Troubleshooting ... I had a look at the permissions for some of the 54 ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: WMI wouldnt start. My fix.
    ... Event Log initially showed (when I started ... are times when WMI needs Event Log and times when it doesn't... ... On the launch permissions, ... Oh wait, you mentioned Windows Firewall... ...
    (microsoft.public.windowsxp.wmi)
  • Re: Writing to the Event Log in Windows Service
    ... > exactly the same techniques that I've used for other apps (Web apps, windows ... I think this is most likely a permissions issue - have you ... >> windows event log by utilizing a custom event log class that inhertis from ...
    (microsoft.public.dotnet.framework)
  • Re: PERMISSIONS FOR A FILE
    ... another group that is blocked from having full control to that file. ... check the permissions on the share. ... You could make a second copy of that file in that folder, ... By default in Windows ...
    (microsoft.public.security)