Re: Security Exception ! Help me please!!

From: Next (aeverett99@hotmail.com)
Date: 07/22/02


From: "Next" <aeverett99@hotmail.com>
Date: Sun, 21 Jul 2002 22:11:42 -0700


FYI:
After unzipping the downloaded folder, please read index.htm.

"6.
Open Machine.Config (by default in
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\CONFIG) in a text editor, find
the <processModel> section, and set the userName attribute to "SYSTEM". This
is required to enable event logging in ASP.NET Applications -- which we use
in our custom error handling. "

"hugepig" <hugepig2002@yahoo.com> wrote in message
news:edy7kx8FCHA.2656@tkmsftngp10...
>
> Server Error in '/ThePhile' Application.
> --------------------------------------------------------------------------

--
> ----
>
> Security Exception
> Description: The application attempted to perform an operation not allowed
> by the security policy. To grant this application the required permission
> please contact your system administrator or change the application's trust
> level in the configuration file.
>
> Exception Details: System.Security.SecurityException: Requested registry
> access is not allowed.
>
> Source Error:
>
> Line 27: protected void LogEvent(string message, EventLogEntryType
> entryType)
> Line 28: {
> Line 29: if (!EventLog.SourceExists("ThePhile.COM"))
> Line 30: {
> Line 31: EventLog.CreateEventSource("ThePhile.COM", "Application");
>
>
>
>


Relevant Pages

  • Re: [ANN] Updated Website
    ... To grant this application the required permission ... please contact your system administrator or change the application's trust ... If you get a security exception refresh, ...
    (borland.public.delphi.thirdpartytools.general)
  • Newbie Question: Security Exception With Data Access
    ... I have been successful in creating a simple web part with a ... label on it that displays "Hello World". ... Security Exception ... To grant this application the required permission ...
    (microsoft.public.sharepoint.portalserver.development)
  • Permission Problem
    ... It was working perfect until I had to put it in a shared folder ... To grand this application the required permission, ... system administrator, or use the Microsoft .NET Framework Configuration ...
    (microsoft.public.dotnet.languages.vb)
  • Permission problem
    ... It was working perfect until I had to put it in a shared folder ... To grand this application the required permission, ... system administrator, or use the Microsoft .NET Framework Configuration ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Question about strong-name dlls
    ... > Security Exception ... To grant this application the required permission ... > please contact your system administrator or change the application's trust ... >>> Diego F. ...
    (microsoft.public.dotnet.framework.aspnet)