且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

SharePoint 2010 中的沙盒解决方案和场解决方案有什么区别

更新时间:2021-10-10 05:31:51

农场解决方案:托管在 IIS 工作进程 (W3WP.exe) 中的场解决方案运行的代码会影响整个场.当您调试已设置沙盒解决方案属性的 SharePoint 项目时.

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.

沙盒解决方案:沙盒解决方案托管在 SharePoint 用户代码解决方案工作进程 (SPUCWorkerProcess.exe) 中,运行的代码只能影响解决方案的网站集.由于沙盒解决方案不在 IIS 工作进程中运行,因此 IIS 应用程序池和 IIS 服务器都不必重新启动.Visual Studio 将调试器附加到 SharePoint 中的 SPUserCodeV4 服务自动触发和控制的 SPUCWorkerProcess 进程.SPUCWorkerProcess 进程不需要循环加载最新版本的解决方案.

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

您也可以参考此了解沙盒解决方案 goodlink

You can also refere this to know sandbox solutions goodlink