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

Friday, June 15, 2012

How to Deploy a Sandbox Solution in Sharepoint 2010

Even a Site collection administrators can deploy a Sandboxed solution in the site collection
To install a sandboxed solution
1.       Got to Site Actions, and then select Site Settings.
2.       On the Site Settings page, click Solutions under the Galleries heading.
3.       On the Solutions tab of the Server ribbon, click Upload Solution.
4.       In the Upload Solution dialog box, click Browse, and browse to the sandboxed solution package (.wsp file). Click Open.


The solution package is now in the site collection's solution gallery, but it is not yet deployed.
5.       In the Activate Solution dialog box, click Activate to activate the solution

How to Block / Unblock a Sandbox solution in the farm ? - Sharepoint 2010

At times there might be a need to block or unblock the sandboxed solution
In the Central Administration ( You must be a member of the Farm Administrators group )
ð  Navigate to System Settings. in the Farm Management section,
ð  Click Manage user solutions.
ð  On the Sandboxed Solution Management page in the Solution Restrictions section
In the File box, either type the full path of the file that contains the solution to block or use the Browse button to browse for the file to block.
You can also type a message in the Message box. This message will be displayed when a user tries to use the solution.
ð  Click Block. The solution is added to the list in the Blocked Solutions box.
ð  Click OK
And you are Done the Solution is blocked

To unblock the Solution you need to navigate to

On the System Settings page in the Farm Management section  click Manage user solutions.
On the Sandboxed Solution Management page, in the Solution Restrictions section, in the Blocked Solutions box, select the solution to unblock, and then click Remove.Click OK.
And the solution is unblocked

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