Friday, June 15, 2012

Sandbox solution - Sharepoint 2010

First let’s see what is a Solution?
Solution is a reusable package which contains features, site definitions, and other functionality. it can be deployed on the server farm globally or on a particular web application .

Now what is a Sandbox?
Sandbox is a restricted execution environment that enables programs to access only certain resources. Which also helps in keeping the production environment isolated from the problems that occur in the sandbox?

Solutions that you deploy in a sandbox are known as sandboxed solutions. They cannot use certain computer or network resources and cannot access content outside the site collection they are deployed in
Sandboxed solutions can be deployed by a site collection administrator or, in certain situations, by a user who has the Full Control permission level at the root of the site collection you need not be a Farm administrator for the same.
Only a farm administrator can promote a sandboxed solution to run directly on the farm, outside the sandboxed environment.

When should we use sandboxed solutions?
ð  When an organization wants to run code for employees on a production SharePoint Server site, and that code has not been rigorously reviewed and tested.

ð  When the farm admin wants a site collection admin upload and run custom code.
Advantages of using sandboxed solutions -
  • Sandboxed solutions can be added to a production SharePoint Server environment without any risk.
  • Site collection administrators can deploy sandboxed solutions.
  • Scalability and flexibility are increased because sandboxes run in a separate process
SPUCWorkerprocess.exe - Sandbox Worker process service is a Separate Service Application that actually executes Sandbox code. This service application should be started in every farm for using Sandbox solutions
SPUCWorkerprocessproxy.exe - Sandbox Worker process proxy works as a proxy for Worker process. It takes care of Sandbox code execution and can also serve to other farms if configured. It helps the site administrator for load balancing
SPUCHostservice.exe - Sandbox User Code Service takes care of user code in Sandbox. This service can be started in the farm s for using Sandbox solutions
You need not modify anything or recompile anything if you want to move the solution to the Production Environment  

No comments:

Post a Comment

Users cannot see the checked out files in the folder/ library

I Came across a Issue today wherein the user opened a ticket for the below issue Issue : Users cannot see the checked out files in the fo...