Feature | Farm Solution | Sandbox Solution |
Deploying the solution | The farm solution is added directly to the SharePoint server and then deployed to the farm. It is deployed by the farm administrator. | The Sandbox solution is uploaded using the Solution Gallery interface of the site collection and then activated. And the solution is deployed by the site collection administrator or a user with full privilege. |
Running the solution | The farm solution uses an IIS worker process with unrestricted rights. | The Sandbox solution uses a separate worker process to access and execute the data. |
Accessing the data | A farm solution has complete access to all the content at the farm level. | A Sandbox solution uses a separate worker process to access and execute the data. This restricts the data availability at the site collection level alone. |
Securing the solution | The farm solution is not governed by any access security but the developer can set the code access when packaging the solution. | The Sandbox solution is governed and protected by the .NET Code Access Security or CAS policy. |
Monitoring the solution | The solutions deployed in the farm are not monitored. | The site collection administrator monitors the Sandbox solution based on the restrictions provided by the farm administrator. |
Balancing the load | The load balancing used in a farm solution depends on the type of solution that is deployed. | The load balancing used in a Sandbox solution is configured outside the sandbox. |
Here is a comparison between SharePoint 2010 farm solution and Sandbox solution
Comments