RE: EventLogPermission via caspol.exe

From: Aleksandr Sliborsky (AleksandrSliborsky_at_discussions.microsoft.com)
Date: 04/27/05


Date: Wed, 27 Apr 2005 03:02:07 -0700


"Mark A. Richman" wrote:

> I am getting an EventLogPermission exception when calling my assembly from an ASP.NET 2.0 app. I tried setting the assembly to FullTrust via caspol.exe, but I still get this exception. Any ideas? I am loading the web app and assemblies over UNC.
> --
> MARK RICHMAN

Do you use Code Access Security?
May be in some place of Your code You use it declarative.
And You declared that only som signed assemblies can acces Your assembly.
Oh may be You have to use impersonatino because ASP.NET host application
has;t any gihts to access to event log...

Aleksandr Sliborsky