jump to navigation

SharePoint Exception Details: System.Security.SecurityException: January 19, 2011

Posted by juanpablo1manrique in BI, Business Inteligent, Seguridad, SharePoint, Uncategorized.
Tags: ,
trackback

Al intentar llamar otra aplicación WEB desde SharePoint recibi el siguiente error

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=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ failed.

Para solucionar este inconveniente en el web.config del sharepoint se encuentran las siguientes definiciones

      <trustLevel name=”WSS_Medium” policyFile=”C:\Archivos de programa\Archivos comunes\Microsoft Shared\Web Server Extensions\12\config\wss_mediumtrust.config” />
      <trustLevel name=”WSS_Minimal” policyFile=”C:\Archivos de programa\Archivos comunes\Microsoft Shared\Web Server Extensions\12\config\wss_minimaltrust.config” />

Las cuales establecen las posibles politicas de seguridad que puede tener el SharePoint, estas politicas son editables y permiten dar mayor o menor funcionalidad al SharePoint con respecto a otras aplicaciones o dlls.

Si comparamos la definición de la politica de WSS_Medium y WSS_Minimal para este dll se observa que en WSS_Medium se pueden ejecutar más acciones.

  • WSS_Medium <IPermission       version=”1″ Flags=”Assertion, Execution, ControlThread, ControlPrincipal,     RemotingConfiguration”   />
  • WSS_Minimal <IPermission       version=”1″ Flags=”Assertion, Execution, ControlThread, ControlPrincipal,     RemotingConfiguration”   />

Entonces se debe reemplazar unas cuantas lineas más abajo con

  • <trust level=”WSS_Medium” originUrl=”” />

Y solucionada la integración

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: