Expand Minimize

SPC150101: Do not define CAS Policies

The assemblies in a farm solution in SharePoint 2010 could be deployed with Custom Access Security (CAS) policies. Such policies are ignored in SharePoint 2013; all assemblies in farm solutions in SharePoint 2013 run with full trust.

CheckId SPC150101
TypeName DoNotDeployCASPolicies
Severity Warning
Type PolicyItem

Remove CAS Policies from manifest.xml. See sample below:

<Solution SolutionId="..." SharePointProductVersion="15.0" xmlns="http://schemas.microsoft.com/sharepoint/" >
  
   <CodeAccessSecurity>
      <PolicyItem>
         <PermissionSet class="NamedPermissionSet" version="1">
            <IPermission class="SharePointPermission" version="1" ObjectModel="True" />
            ...
         </PermissionSet>
         <Assemblies>
            <Assembly Name="MyCompany.Intranet.WebParts" Version="3.3.0.0" PublicKeyBlob="..." />
         </Assemblies>
      </PolicyItem>
   </CodeAccessSecurity>
</Solution>

Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.