Warning: Declaration of WarpMenuWalker::start_lvl(&$output, $depth) should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = Array) in /home4/x15denis/public_html/wp-content/themes/yoo_nano2_wp/warp/systems/wordpress/helpers/system.php on line 678

Warning: Declaration of WarpMenuWalker::end_lvl(&$output, $depth) should be compatible with Walker_Nav_Menu::end_lvl(&$output, $depth = 0, $args = Array) in /home4/x15denis/public_html/wp-content/themes/yoo_nano2_wp/warp/systems/wordpress/helpers/system.php on line 678

Warning: Declaration of WarpMenuWalker::start_el(&$output, $item, $depth, $args) should be compatible with Walker_Nav_Menu::start_el(&$output, $item, $depth = 0, $args = Array, $id = 0) in /home4/x15denis/public_html/wp-content/themes/yoo_nano2_wp/warp/systems/wordpress/helpers/system.php on line 678

Warning: Declaration of WarpMenuWalker::end_el(&$output, $item, $depth) should be compatible with Walker_Nav_Menu::end_el(&$output, $item, $depth = 0, $args = Array) in /home4/x15denis/public_html/wp-content/themes/yoo_nano2_wp/warp/systems/wordpress/helpers/system.php on line 678
Denis Stadler – SharePoint & Dynamics CRM Consultant » How to Create a Sandboxed Web Part and Deploy It to Office 365 / SharePoint 2010

How to Create a Sandboxed Web Part and Deploy It to Office 365 / SharePoint 2010

Written by Denis Stadler on . Posted in Custom Development, Office 365, SharePoint 2010

First of all you will need a Development Environment with SharePoint 2010 and Visual Studio 2010.

Download and install SharePoint 2010 SDK.

Download and install Visual Studio 2010 SharePoint Power Tools.

Then you have to enable Microsoft SharePoint Foundation Sandboxed Code Service in Central Administration. Go to Central Administration and then click Manage services on server.

Start Microsoft SharePoint Foundation Sandboxed Code Service.

Open Visual Studio 2010 and create a new Empty SharePoint Project.

Right Click the Project, then Add -> Add Existing Item. In the new dialog just choose Visual Web Part (Sandboxed).

Add code into the Web Part,  build the project and then right click on the project and click Package. You should find into the project’s folder \bin\debug WSP file.

Login with a user which has administrative privileges into your Office 365. Go to the Home page. Then under Team sites and documents click Manage Team Sites.

Under Site Collection Administration click Go to top level site settings. Under Galleries click Solutions.

Upload here your WSP file and then Activate the Solution. Now when you Edit a Page in any of your SharePoint Sites you should see your Web Part in the Custom Web Parts Section.

Download Full Code

Tags: , , ,

Trackback from your site.

Denis Stadler

I'm a technology enthusiast, with more than 10 years of experience in SharePoint and Dynamics CRM projects. To find more details about, please visit the about me page.

Leave a comment


Warning: Parameter 1 to W3_Plugin_TotalCache::ob_callback() expected to be a reference, value given in /home4/x15denis/public_html/wp-includes/functions.php on line 3208