What is the difference between sandboxed and farm solution in SharePoint 2010

前端 未结 8 2083
攒了一身酷
攒了一身酷 2020-12-30 09:50

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

8条回答
  •  北荒
    北荒 (楼主)
    2020-12-30 10:20

    Farm Solutions:

    • Farm solutions are hosted in the IIS worker process (W3WP.exe).
    • If you run any code in farm solution the whole farm will got affected.
    • If you deploy any feature or retract any feature the whole application pool got recycled.
    • Since they are scoped as farm level, they have full trust access to all the resources.
    • When the Sand boxed Solution property is set to False, selecting Build\Deploy will deploy the solution to the Farm Solution Gallery.

    Sand boxed Solution:

    • Sand boxed solutions are hosted in the SharePoint user code solution worker process (SPUCWorkerProcess.exe).

    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

提交回复
热议问题