Writing to the EventLog

From: Brad Quinn (brad_quinn@yahoo.com)
Date: 07/05/02


From: "Brad Quinn" <brad_quinn@yahoo.com>
Date: Fri, 5 Jul 2002 16:02:17 -0500


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

  • Re: Writing to the EventLog
    ... an aspx page. ... I wrote a little console application with the following snippet; ... >>> When I invoke my Log method from an WebForm I get the following ... >>> increase the level of trust of my assembly. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: System Security virus - PCBUTTS Exposed as a thief
    ... Leythos wrote: ... does anyone have to invoke a charge of "unethical". ... Trust yourself. ...
    (alt.comp.anti-virus)
  • Re: System Security virus - PCBUTTS Exposed as a thief
    ... does anyone have to invoke a charge of "unethical". ... change all the credits to your own name and then distribute it as your ... Trust yourself. ...
    (alt.comp.anti-virus)
  • Re: Poor Webmaster Personal Sites
    ... >> MS sites seem to invoke a sense of relaxation and trust. ... > on the internet to look blue ...
    (microsoft.public.frontpage.client)
  • Re: how to make this works???
    ...  You need to invoke a command processor, ... .NET: It's About Trust! ... i am not a programmer... ...
    (microsoft.public.vb.syntax)

Loading