Re: Custom Event Log
From: Adam (aaltson@unicru.com)
Date: 07/31/02
- Next message: Christopher Zacharias: "How can I find out whether a user has permissions to see a page or not?"
- Previous message: Arild Bakken: "Re: ASP.NET apps security restriction"
- In reply to: David Thom: "Re: Custom Event Log"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Adam" <aaltson@unicru.com> Date: Wed, 31 Jul 2002 11:36:48 -0700
Thanks for the reply David,
Unfortunately, this does not seem to work for us. I had already done exactly
what you proposed, but we still receive the exception
"System.Security.SecurityException: Requested registry access is not
allowed." whenever we attempt to use the WriteEntry function. It's somewhat
frustrating given how MS has continually touted customer event logs as a
great feature of .NET development.
I wonder what other differences there must be between our configurations
that allow it to work for you and not us.
"David Thom" <davidt@npsinc.com> wrote in message
news:eYYsdFpMCHA.1624@tkmsftngp10...
> 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: Christopher Zacharias: "How can I find out whether a user has permissions to see a page or not?"
- Previous message: Arild Bakken: "Re: ASP.NET apps security restriction"
- In reply to: David Thom: "Re: Custom Event Log"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|