SharePoint Use Cases

  • Home
  • About
  • Our Tools
  • Contact me
SharePoint, SharePoint 2010

Introduction to SharePoint 2010 SandBox Solutions for Site Collection Owners

Toni Frankola - March 30, 2010

Posts in the "Introduction to SharePoint 2010 SandBox Solutions" series

  • Introduction to SharePoint 2010 SandBox Solutions for Site Collection Owners

If you have been reading about exciting new features of SharePoint 2010 you probably heard about something called SandBox Solutions. In this post I will try to explain what SandBox Solutions are and how you, as 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
  • Such 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 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 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 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“ for indefinite number of times on a web part page. But don’t you worry, if it is deployed as 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 isolated and monitored process. In case unusual operation like the one above is detected the process will finalize its execution.

Monitoring SandBox Solutions

As Site Collection administrator you can monitor resource usage of 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 next few posts.

Tags | sandbox-solutions, webparts
 0
Share Now

Toni Frankola

Entrepreneur, IT consultant, speaker, blogger, and geek. Co-founder of syskit.com.

You Might Also Like

SharePoint, SharePoint 2010

Search AutoComplete for SharePoint 2010 lists

April 6, 2010
SharePoint, SharePoint 2010

Search AutoComplete for SharePoint 2010 Central Administration

April 12, 2010
SharePoint

My slides from SharePoint conference Peru

May 23, 2010
SharePoint 2010

Compile and package Sandboxed and Farm solutions using the same code base

July 4, 2010
Previous Post I’ll be speaking about SharePoint at Microsoft Windays 2010
Next Post Search AutoComplete for SharePoint 2010 lists

Archives

  • December 2021 (1)
  • June 2021 (1)
  • January 2021 (1)
  • July 2019 (1)
  • June 2019 (2)
  • March 2019 (1)
  • February 2019 (3)
  • October 2018 (2)
  • August 2018 (2)
  • June 2018 (1)
  • April 2018 (1)
  • February 2018 (1)
  • January 2018 (1)
  • June 2017 (1)
  • April 2017 (1)
  • February 2017 (1)
  • November 2016 (2)
  • August 2016 (1)
  • July 2016 (2)
  • March 2016 (1)
  • February 2016 (2)
  • January 2016 (1)
  • November 2015 (2)
  • December 2014 (1)
  • November 2014 (2)
  • July 2014 (2)
  • June 2014 (2)
  • May 2014 (1)
  • April 2014 (2)
  • March 2014 (1)
  • February 2014 (4)
  • January 2014 (2)
  • December 2013 (1)
  • September 2013 (1)
  • July 2013 (1)
  • June 2013 (1)
  • May 2013 (1)
  • April 2013 (3)
  • February 2013 (1)
  • December 2012 (1)
  • November 2012 (1)
  • September 2012 (1)
  • August 2012 (1)
  • July 2012 (2)
  • June 2012 (4)
  • April 2012 (1)
  • February 2012 (1)
  • January 2012 (1)
  • November 2011 (2)
  • October 2011 (2)
  • September 2011 (2)
  • July 2011 (3)
  • May 2011 (2)
  • April 2011 (1)
  • March 2011 (4)
  • February 2011 (3)
  • January 2011 (4)
  • December 2010 (4)
  • November 2010 (3)
  • October 2010 (3)
  • September 2010 (4)
  • August 2010 (1)
  • July 2010 (4)
  • May 2010 (2)
  • April 2010 (2)
  • March 2010 (3)
  • January 2010 (2)
  • December 2009 (3)
  • November 2009 (5)
  • October 2009 (2)
  • August 2009 (7)
  • July 2009 (3)
  • June 2009 (4)
  • May 2009 (3)
  • April 2009 (5)
  • March 2009 (8)
  • February 2009 (5)
  • January 2009 (8)
  • December 2008 (9)
  • November 2008 (8)
  • October 2008 (7)
  • September 2008 (4)
  • August 2008 (6)
  • July 2008 (5)
  • June 2008 (3)
  • May 2008 (4)
  • April 2008 (6)
  • March 2008 (4)
  • February 2008 (3)
  • January 2008 (6)
  • December 2007 (1)
  • November 2007 (3)
  • October 2007 (3)
  • September 2007 (2)
  • August 2007 (1)
  • July 2007 (12)
  • June 2007 (2)
  • May 2007 (3)

Connect Us

All postings on this blog are provided “AS IS” with no warranties, and confer no rights. All entries in this blog are my opinion and don’t necessarily reflect the opinion of my employer.

  • Home
  • About
  • Our Tools
  • Contact me

Copyright (c) Toni Frankola 2008. - 2019.