Re: Writing to the EventLog

From: Simon Pallister (simon@dotcom.com)
Date: 07/08/02


From: "Simon Pallister" <simon@dotcom.com>
Date: Mon, 8 Jul 2002 09:20:17 +1000


Brad - which particular method did you use in the end? Just interested...

S

"Brad Quinn" <brad_quinn@yahoo.com> wrote in message
news:umbb4qGJCHA.2424@tkmsftngp08...
> Sorry, should have checked Google first.
>
> "Brad Quinn" <brad_quinn@yahoo.com> wrote in message
> news:#7EVicGJCHA.3980@tkmsftngp10...
> > I'm trying to create an assembly with a logging class that writes to the
> > EventLog, just like Duwamish.
> >
> > When I invoke my Log method from an WebForm I get the following
exception;
> > System.Security.SecurityException: Requested registry access is not
> > allowed.
> >
> > This makes perfect sense, but I need to get around it.
> >
> > I've tried using the "Microsoft .NET Framework Configuration" tool to
> > increase the level of trust of my assembly. I'm trying to operate
> directly
> > on the file "wwwroot\Web\bin\Logger.dll", without much luck. Do I need
to
> > increate the trust of the calling assembly?
> >
> > Thanks,
> > Brad
> >
> >
>
>



Relevant Pages