Showing posts with label sandboxed solution. Show all posts
Showing posts with label sandboxed solution. Show all posts

Friday, June 15, 2012

Enabling a sandbox solution in the farm - Sharepoint 2010

How to enable a sandbox solution in the farm ?
You must be a member of the Farm Administrators group . Now in the central administration in the => System settings => click on Manage services on server
In the server select the server on which you want to enable sandboxed solutions
You will see the Microsoft SharePoint Foundation Sandboxed Code Service click start
If you have a server farm you need to start the service on each server on which you want to enable sandboxed solutions .
You can also enable sandboxed solutions by using Windows PowerShell
Open the SharePoint  Powershell command window and type the command given below
Start-Service -Name SPUserCodeV4

If you have a server farm you need to start the service on each server on which you want to enable sandboxed solutions

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  

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...