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

前端 未结 8 2010
攒了一身酷
攒了一身酷 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:29

    One major difference is we can't create Aplication pages in Sandbox solutions.Beacuse Application pages are stored in the 14\TEMPLATES_LAYOUTS and when we deploy as sandbox we dont have permissions to the physical folder.

    • Also we cant create VISUAL web parts in Sandbox soultions.
    • We cant use code to connect to the external web services or to database in the sandbox soltion
    • Farm solutions are installed and deployed. Sandboxed solutions are uploaded and activated.

    Farm solutions, which are hosted in the IIS worker process (W3WP.exe), run code that can affect the whole farm. 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.

    0 讨论(0)
  • 2020-12-30 10:44

    Normally we are using Sandbox solution for Online sharepoint such as office365. In this case user will get a solution to work with, but not the Physical system folders. So we cant give any images or contents into the Layout folder(it is restricted). And the main thing is We couldn't able to use some SP-class features in the Sandbox solution(which can be get the information about other farm solutions and server information). Thus farm solution is restricting this SP classes, system folders along with SPUCWorkerProcess process.

    We can create the Visual Webparts as Sandbox solutions in 2013 but we have to make sure about the classes and we never want to use the layout folders etc.

    0 讨论(0)
提交回复
热议问题