I am new to SharePoint 2010. What is the main difference between sandbox and farm solution. Can you give me 5 differences to remember. I googled, but there is lot of matter to understand. As a start up guy, i want to know the basic difference. Thanks for your help.
Farm solutions should be used for customizations of SharePoint administrative functions, such as custom timer jobs, custom Windows PowerShell cmdlets, and extensions of Central Administration.
A Microsoft SharePoint Foundation solution package can contain custom code, features, branding, and different types of definitions and templates. SharePoint 2010 introduced a concept of the sandbox, which is basically a restricted execution environment in which custom code can run and access only limited resources.
What's the Sandbox solution in SharePoint? Sandboxed solutions are a feature in SharePoint 2010/2013 that enables site collection users to upload their own custom code solutions. A sandboxed SharePoint application runs in a secure, monitored process that has access to a limited part of the web farm.
Farm Solution: Farm solutions, which are hosted in the IIS worker process (W3WP.exe), run code that can affect the whole farm. When you debug a SharePoint project whose Sandboxed Solution property is set.
Sandbox solution: Sandboxed solutions, which are hosted in the SharePoint user code solution worker process (SPUCWorkerProcess.exe), run code that can only affect the site collection of the solution. Because sandboxed solutions do not run in the IIS worker process, neither the IIS application pool nor the IIS server must restart. Visual Studio attaches the debugger to the SPUCWorkerProcess process that the SPUserCodeV4 service in SharePoint automatically triggers and controls. It is not necessary for the SPUCWorkerProcess process to recycle to load the latest version of the solution.
For more please refere this link
You can also refere this to know sandbox solutions goodlink
Farm Solutions:
Sand boxed Solution:
try to this link - The process runs under a CAS policy that restricts programmatic access to any resource outside the sandbox. - So it never restart the IIS application pool. - If you run any code it will affect only the site collection of the solution. - Helpful if you have shared hosting. - When the Sandboxed Solution property is set to True, selecting Build\Deploy Solution deploys the solution to the site collection Solution Gallery.
One major difference in the deployment is Farm solutions are installed and deployed. Sandboxed solutions are uploaded and activated.
This Link http://www.enjoysharepoint.com/Articles/Details/differences-between-sandboxed-and-farm-solutions-i-66.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With