Background: Deploying a aspx web application within a Sharepoint site. Such as C:\inetpub\wwwroot\wss\VirtualDirectories\80\CustomWeb.
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: Request for the permission of type ‘Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ failed.
Solution: Add this line to your applications web.config file, system.web section:
Explanation: By default WSS/MOSS is configured with a security policy called WSS_Minimal. This policy definition doesn’t grant access to the SP object model.
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: Request for the permission of type ‘Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ failed.
Solution: Add this line to your applications web.config file, system.web section:
Explanation: By default WSS/MOSS is configured with a security policy called WSS_Minimal. This policy definition doesn’t grant access to the SP object model.
No comments:
Post a Comment