Re: Custom Event Log
From: David Thom (davidt@npsinc.com)
Date: 07/23/02
- Next message: Gene: "Re: ASPNET User Problem in Shared Hosting Environment"
- Previous message: David Thom: "Understanding application security in .NET"
- In reply to: Adam: "Custom Event Log"
- Next in thread: Adam: "Re: Custom Event Log"
- Reply: Adam: "Re: Custom Event Log"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "David Thom" <davidt@npsinc.com> Date: Tue, 23 Jul 2002 16:39:47 -0500
We ran into the same problem, and we initially changed the machine.config
file to allow ASP.NET to create the custom event log. Our eventual
workaround, however, was to create the custom event log with a simple
application that we invoke during the application install. Once we defined
the event log (and sources!!!), we can write to the custom log from ASP.NET
(without having to modify the permissions).
David Thom
NPSi
"Adam" <aaltson@unicru.com> wrote in message
news:ejqDg#aLCHA.2424@tkmsftngp09...
> Has anyone found the ideal way to deal with a custom Event Log yet?
>
> I have seen several other posts and articles running into the same
problems
> I did. In effect, the user ASPNET does not have access to read the
> necessary registry settings no matter what I try. I was able to create a
> very simple console application which generated the custom event log and
the
> necessary source. Now all I want to do is write to that log from and
> ASP.Net application. The WriteEntry function fails with the
> "System.Security.SecurityException: Requested registry access is not
> allowed." At least one person has pointed out that if you change the
> machine.config file to treat ASPNET as system instead of machine this
> resolves the problem. While that is true (but requires a reboot as I
> discovered the hard way), it has also been pointed out that this is a
rather
> drastic solution that raises other possible security issues.
>
> Isn't there some in-between? All I need to do write to an a custom Event
> Log that has already been created. I'd rather not have ASP.NET run as a
> highly privileged account just to accomplish this one task.
>
> Thanks
>
> Adam
>
>
>
- Next message: Gene: "Re: ASPNET User Problem in Shared Hosting Environment"
- Previous message: David Thom: "Understanding application security in .NET"
- In reply to: Adam: "Custom Event Log"
- Next in thread: Adam: "Re: Custom Event Log"
- Reply: Adam: "Re: Custom Event Log"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|