Introduction to SharePoint 2010 SandBox Solutions for Site Collection Owners
Guest Author: Toni Frankola
SharePoint Use Cases
If you have been reading about exciting new features of SharePoint 2010 you’ve probably heard about something called SandBox Solutions. In this post I will try to explain what SandBox Solutions are and how you, as a Site Collection Owner / End User / Non Developer type, can benefit from these solutions.

In a nutshell, SandBoxed solutions allow you to:
- Deploy custom code you have developed or downloaded from the Internet
- The custom code you deploy cannot jeopardize the stability of your farm
- Solutions are being deployed via web interface
- If you are running SharePoint in a hosted environment you will be able to deploy SandBoxed solutions there as well
SandBox Solutions support the following SharePoint item types:
- List definitions
- List instances
- Content Types/Fields
- Navigation
- Web Parts derived from WebPart
- Event receivers
- Custom Workflow Actions
- Workflows
For full list check SharePoint Dev Wiki.
Hello World Web Part
So let’s try to deploy our first custom SandBoxed solution web part. I have developed one for you. It comes with two simple web parts.
To deploy it:
- Download the solution package to your computer
- Open your SharePoint 2010 site collection
- Go to Site Actions > Site Settings > Galleries > Solutions
- Click Upload Solution from the Solutions ribbon
- Once uploaded make sure you have Activated the solution
To insert this custom web part go to a web part page, choose Edit, then Insert a web part. Web parts you just deployed will be in the Custom group.
Insert the Hello World web part to your page. It will render as something like this:

Once deployed, you might ask: Well Toni, this is nice, but I could create this using only JavaScript/JQuery.
Yes you could do that, but in the next few articles I will show you some stuff you cannot do. The other important benefit is the ability to download/purchase 3rd party web parts and deploy these without any risk.
Very bad Web Part
So let’s do something you shouldn’t do at home . In the solution package you just deployed there is another web part named Very Bad WebPart. This one is going to try to write „Romeo loves Juliet“ an indefinite number of times on a web part page. But don’t you worry, if it is deployed as a SandBox Solution there is no way it can put your farm in any kind of danger.
Once deployed to a web part page it is going to be rendered as:

SharePoint 2010 SandBoxed solutions run as an isolated and monitored process. In case an unusual operation like the one above is detected the process will finalize its execution.
Monitoring SandBox Solutions
As a Site Collection administrator you can monitor resource usage of the SandBox solutions via Site Actions > Site Settings > Galleries > Solutions. The simple dashboard shows how much resources have been consumed by deployed solutions. To learn more about SharePoint resource usage configuration click here.

Interested in SandBox Solutions? Stay tuned as I will be posting some interesting samples in the next few posts.
Guest Author: Toni Frankola
SharePoint Use Cases
Toni started his Web adventure in late 90’s and has been working with various web technologies ever since. These days his main focus is SharePoint technology. He is active in the SharePoint community via his SharePoint blog at http://www.sharepointusecases.com/ and Twitter http://twitter.com/tonifrankola, and also speaks about SharePoint at various SharePoint conferences. Toni runs his own company Acceleratio Ltd., that specializes in SharePoint consulting and developing software products, and leads the Croatian SharePoint User Group.