Contents
Sandbox solutions are customization packages that can be used to deploy customizations to SharePoint on the site collection level. If a sandbox solution contains code, it has been executed in a special isolated process with a limited set of APIs to access SharePoint services and content.
What can be deployed as sandbox solution?
WebParts. WebPart can be used in a sandboxed solution. Web Part connections are not possible in sandboxed solutions. A web template is deployed as a WebTemplate element along with an onet.
Start the Sandboxed Code Service
- Go into the Central Administration.
- Under System Settings, open ‘Manage services on server’.
- Start ‘Microsoft Foundation Sandboxed Code Service’.
- Open the Command Prompt and do an iisreset.
- Refresh the page where you wanted to activate a sandboxed solution and try again.
Where to find sandboxed solutions in SharePoint 2010?
For example, the namespace with the primary APIs for the system is Microsoft.SharePoint.UserCode, and the service that governs sandboxed solution execution is called SharePoint 2010 User Code Host in the Windows Services dialog box on front-end web servers.
Additionally, Microsoft Visual Studio 2010 can deploy solutions directly to the sandbox during development. Enabling sandboxed solutions in a SharePoint farm is simple because it requires enabling only a single Windows service, the User Code Service.
How are sandboxed solutions managed in Visual Studio 2010?
Sandboxed solutions are managed through a new Solution Gallery at the site collection level and farm-level tools found in Central Administration. Additionally, Microsoft Visual Studio 2010 can deploy solutions directly to the sandbox during development.
When to use user in place of sandboxed?
The term user is sometimes used in place of sandboxed, especially in the object model for the sandboxed solutions system.