Re: security exception for aspx page

From: GoCMS (GoCMS_at_discussions.microsoft.com)
Date: 11/16/04


Date: Tue, 16 Nov 2004 11:19:02 -0800

The message is not detailed enough though, as follows:

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:Security Error

"Nicole Calinoiu" wrote:

> What is the exception message or, even better, its full details (as returned
> by its ToString method)?
>
>
> "GoCMS" <GoCMS@discussions.microsoft.com> wrote in message
> news:3DBB444B-3A4A-419D-A61A-8E281CBE1CA3@microsoft.com...
> > hi, there:
> > I was developing a new page for a web part project. My page keeps on
> > getting security exception whereas other pages in the same project don't.
> > I
> > set the security level to be WSS_MediumTrust level. I wasn't using any
> > database connection, but I was using a third party DLL( which is already
> > signed and put into GAC).
> >
> > I add the third party assembly into the project web.config.
> > I also add the following section into WSS_MediumTrust.config file.
> > <CodeGroup class="UnionCodeGroup" version="1"
> > PermissionSetName="FullTrust">
> > <IMembershipCondition class="StrongNameMembershipCondition"
> > version="1" PublicKeyBlob="public key for 3rd party assembly"/>
> > </CodeGroup>
> >
> > Any other ideas? Thanks a LOT!
> >
> >
> >
>
>
>



Relevant Pages

  • Security Exception ! Help me please!!
    ... Server Error in '/ThePhile' Application. ... Security Exception ... by the security policy. ... To grant this application the required permission ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Security exception permission denied
    ... SECURITY EXCEPTION ... The application attempted to perform an operation not allowed by the security policy. ... To grant this application the required permission please cpmtact your system administrator or change the application“s trust level in the configuration file... ... What is the configuration file?? ...
    (microsoft.public.dotnet.languages.csharp)
  • Active directory Permission
    ... I would like to grant my application only permission to Active Directory, ... security exception occurs. ... I tried something similar - grant my application only permission to ...
    (microsoft.public.dotnet.security)
  • 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)
  • Error trying to write to a LogFile
    ... error security. ... The following is the error that I am receiving ... Security Exception ... operation not allowed by the security policy. ...
    (microsoft.public.dotnet.framework.aspnet.security)