Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Sanboxed Solutions SharePoint 2010

2,345 views

Published on

This is a presentation about Sanboxed solutions in SharePoint 2010.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Sanboxed Solutions SharePoint 2010

  1. 1. Salman Ghani (MCPD SharePoint 2010, MCTS MOSS)5th October 2011SANDBOXED SOLUTIONS
  2. 2. Agenda Introduction to Sandboxed Solutions What can be achieved? What is good? Limitations Implementation  Development  Deployment  Debugging options © 2011 www.salmanghani.co.uk. All rights reserved. 2
  3. 3. Introduction to Sandboxed Solutions A new concept in SharePoint 2010 for rapid deployments of solutions. A sandbox is a restricted execution environment that enables programs to access only certain resources, and that keeps problems that occur in the sandbox from affecting the rest of the server environment. This is as simple as uploading a solution to solutions library. © 2011 www.salmanghani.co.uk. All rights reserved. 3
  4. 4. What can be achieved? Can access all classes under SPSite, SPWeb, SPList and SPListItem Can create  web parts  list definitions and list instances  content types and fields  modules  workflows  event receivers Can read and write to the lists and libraries within same site collection © 2011 www.salmanghani.co.uk. All rights reserved. 4
  5. 5. What is Good? Easy Deployment / Upgrade Activate / Deactivate Solutions No Server Reset Ideal for demonstration purpose on live environments (Good for the business case) Good for developers Farm administrator can monitor and validate solutions Easily convert to Farm solution Can be deployed by site collection administrators © 2011 www.salmanghani.co.uk. All rights reserved. 5
  6. 6. Limitations No code with elevate permissions Cannot use visual web parts No access to internet to make web service calls No access to hard drive for read/write files Cannot access code that is not marked for partially trusted callers No deployments to GAC © 2011 www.salmanghani.co.uk. All rights reserved. 6
  7. 7. SANDBOXED SOLUTIONSIMPLEMENTATION
  8. 8. Development of Sandboxed Support in Visual Studio © 2011 www.salmanghani.co.uk. All rights reserved. 8
  9. 9. Develop IntelliSense Support No error messages if use wrong classes Instead run time exceptions © 2011 www.salmanghani.co.uk. All rights reserved. 9
  10. 10. Deployment Just upload to the solutions library (Solutions library per site collections) Activate the solution Easy Upgrade Deactivate Remove © 2011 www.salmanghani.co.uk. All rights reserved. 10
  11. 11. Debugging Code runs under sandboxed worker process Debug against SPUCWorkerProcess.exe Debug rest of the page against w3wp.exe © 2011 www.salmanghani.co.uk. All rights reserved. 11
  12. 12. Load Balancing for Sandboxed Local load balancing  The sandboxed solution runs on the same server that received the request Remote load balancing  The server that the sandboxed solution runs on is selected based on solution affinity, and the sandboxed solution is run on a server where it is already loaded and has already been run. This saves time in servicing the request for the solution. © 2011 www.salmanghani.co.uk. All rights reserved. 12
  13. 13. Resources Sandboxed solutions overview (Technet)  http://technet.microsoft.com/en-us/library/ee721992.aspx Developing, Deploying, and Monitoring Sandboxed Solutions  http://msdn.microsoft.com/en-us/magazine/ee335711.aspx © 2011 www.salmanghani.co.uk. All rights reserved. 13
  14. 14. THANK YOU

×