Sandboxed Compatibility |
Checks files and artifacts whether they are compatible with Sandboxed solutions requirements.
Index
Rule | Description | Type | Severity |
---|---|---|---|
SPC100201: Add attribute 'AllowPartiallyTrustedCallers' | Code in the sandboxed worker process can call only assemblies that have the AllowPartiallyTrustedCallersAttribute. | Assembly | Error |
SPC100202: Do not reference unavailable NET 3.5 assemblies | Code in the sandbox runs as a partially trusted caller. This means that such code can access only those .NET Framework 3.5 assemblies that have the AllowPartiallyTrustedCallersAttribute attribute. | Assembly | Error |
SPC100203: Do not use unallowed SharePoint classes | Only a subset of the APIs in Microsoft.SharePoint.dll are available in sandboxed solutions. | Assembly | Error |
SPC100204: Do not inherit WebParts from SharePoint WebPart | Sandboxed solutions can include only Web Parts derived from the ASP.NET class. | Assembly | Error |
SPC100205: Do not reference assemblies without AllowPartiallyTrustedCallers attribute | Code in the sandboxed worker process can call only assemblies that have the AllowPartiallyTrustedCallersAttribute. This means that most custom assemblies that you deploy in sandboxed solutions must have this attribute. | Assembly | Error |
SPC100206: Do not create static fields and properties | Avoid creating static fields and properties in your sandboxed code. | Assembly | Error |
SPC100209: Create SPSite with correct parameters | A new SPSite can only be instantiated in sandboxed solutions if calling code conforms to certain restrictions on the parameters that are passed. | Assembly | Warning |
SPC100211: Do not set Read-Only Properties | Some properties of SharePoint objects are read/write in farm solutions, but are read-only in sandboxed solutions. | Assembly | Error |
SPC100212: Do not deploy Assembly to GAC | Assemblies cannot be deployed to GAC in Sandboxed Solutions | Assembly | CriticalError |
SPC100301: Do not deploy RootFiles | RootFiles cannot be deployed in a sandboxed solution. | RootFile | CriticalError |
SPC100401: Do not deploy TemplateFiles | TemplateFiles cannot be deployed in a sandboxed solution. | TemplateFile | CriticalError |
SPC100501: Do not deploy Resources | Resources cannot be deployed in a sandboxed solution. | Resource | CriticalError |
SPC102101: Do not deploy Farm Features | Features with scope 'Farm' cannot be deployed in a sandboxed solution. | Feature | CriticalError |
SPC102102: Do not deploy WebApplication Features | Features with scope 'WebApplication' cannot be deployed in a sandboxed solution. | Feature | CriticalError |
SPC105801: Do not deploy CustomActionGroup | CustomActionGroup cannot be deployed in a sandboxed solution. | CustomActionGroup | CriticalError |
SPC105901: Do not deploy HideCustomAction | You cannot deploy a HideCustomAction element in a sandboxed solution. | HideCustomAction | Warning |
SPC106101: Do not deploy Delegate Control | You cannot register a control candidate for a delegate control (Control element) in a sandboxed solution. | DelegateControl | Warning |
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.