如何保存 Sharepoint 沙盒解决方案

发布于 2024-10-10 02:52:20 字数 382 浏览 0 评论 0原文

我一直在观看一些有关 SharePoint 开发的 Pluralsight 培训视频。

我看到的一件事是您可以制作沙箱解决方案或农场解决方案。

从培训视频来看,沙箱解决方案根本不会更改SharePoint Server的文件系统。 (场解决方案部署到 GAC 并保存在 SharePoint 目录中。)

因此,我的问题是,如果它没有存储在文件系统上,它如何持久保存?当我上传沙盒解决方案然后重新启动 SharePoint 服务器时,如果沙盒解决方案不在文件系统的任何位置,则从哪里加载该解决方案?

我猜测培训师犯了一个疏忽,沙盒解决方案被保存在“安全”的地方。我的问题是,这是如何运作的?如果没有保存,那么SharePoint Server重启后如何重新加载呢?如果保存的话保存在哪里?

I have been watching some Pluralsight training videos on SharePoint development.

One of the things I see is that you can make a sandbox solution or a Farm Solution.

From the training video, it says that the sandbox solution does not change the file system of the SharePoint Server at all. (While a Farm Solution is deployed to the GAC and saved in the SharePoint directories.)

So, my question is, if it is not stored on the file system how is it persisted? When I upload a SandBox solution and then reboot my SharePoint server, where is the sandbox solution loaded from if it is not on the file system anywhere?

I am guessing that the trainer made an oversight and that the sandbox solution is saved somewhere "safe". My question is, how does that work? If it is not saved, then how is it re-loaded after the SharePoint Server reboots? If it is saved, where is it saved?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

生活了然无味 2024-10-17 02:52:20

部署沙盒解决方案后,程序集包含在 WSP 包中 - 该包会持久保存到内容数据库中。沙箱解决方案内容保存在内容数据库本身的“解决方案”表中(请参阅定义列)。

它们仅在程序集运行(例如页面加载)时才放入 UCCache,并在之后的某个时刻被删除。

请参阅 - Microsoft SharePoint 开发人员文档团队博客 > 沙盒解决方案中的程序集部署在哪里?

When a sandboxed solution is deployed the assemblies are contained in the WSP package - which is persisted to the content database. The sandbox solution content is kept in the 'Solutions' table in the content database itself (see Definitions column).

They are only put into the UCCache when the assemblies are ran (such as a page load) and they are removed at some point afterwards.

See - Microsoft SharePoint Developer Documentation Team Blog > Where are Assemblies in Sandboxed Solutions Deployed?

谁把谁当真 2024-10-17 02:52:20

当您部署沙箱时,程序集会转到 UCCache。当您部署场时,它们会转到 GAC 或 bin。
沙箱程序集写入到运行用户代码服务的场中每台服务器上的 C:\ProgramData\Microsoft\SharePoint\UCCache 磁盘中。

When you deploy sandbox the assemblies it goes to UCCache. When you deploy farm they go to either the GAC or bin.
the sandbox assembly is written to the disk at C:\ProgramData\Microsoft\SharePoint\UCCache on each server in the farm that runs the user code service.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文