Sandboxed Compatibility

Checks files and artefacts 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. AssemblyFileReference 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. AssemblyFileReference Error
SPC100203: Do not use unallowed SharePoint classes Only a subset of the APIs in Microsoft.SharePoint.dll are available in sandboxed solutions. AssemblyFileReference Error
SPC100204: Do not inherit WebParts from SharePoint WebPart Sandboxed solutions can include only Web Parts derived from the ASP.NET class. AssemblyFileReference 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. AssemblyFileReference Error
SPC100206: Do not create static fields and properties Avoid creating static fields and properties in your sandboxed code. AssemblyFileReference 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. AssemblyFileReference 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. AssemblyFileReference Error
SPC100212: Do not deploy Assembly to GAC Assemblies cannot be deployed to GAC in Sandboxed Solutions AssemblyFileReference CriticalError
SPC100301: Do not deploy RootFiles RootFiles cannot be deployed in a sandboxed solution. RootFileReference CriticalError
SPC100401: Do not deploy TemplateFiles TemplateFiles cannot be deployed in a sandboxed solution. TemplateFileReference CriticalError
SPC100501: Do not deploy Resources Resources cannot be deployed in a sandboxed solution. ResourceDefinition 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. CustomActionGroupDefinition CriticalError
SPC105901: Do not deploy HideCustomAction You cannot deploy a HideCustomAction element in a sandboxed solution. HideCustomActionDefinition Warning
SPC106101: Do not deploy Delegate Control You cannot register a control candidate for a delegate control (Control element) in a sandboxed solution. DelegateControlDefinition Warning
comments powered by Disqus