是否可以在不导致 IIS 重置的情况下部署 SharePoint WSP?

发布于 2024-09-18 07:39:14 字数 416 浏览 3 评论 0原文

我正在使用 SharePoint 2010,并且无法在不导致 IISReset 的情况下部署(或收回)我的 WSP。这是我的情况:

•解决方案包含:

•字段 •单一内容类型 •基于内容类型的页面布局 •进入样式库的一堆图像

•解决方案中的代码为零

•我手动编辑了manifest.xml

•删除了程序集,因此不会将任何内容部署到GAC •在解决方案标签中设置ResetWebServer=“False”

尽管如此,每次收回或部署都会关闭服务器上的所有Web 应用程序。有没有什么方法可以将其限制为仅适用于一个网络应用程序?谢谢!

编辑:附加信息 - 我正在打包 WSP 并使用 powershell 命令进行部署,但即使我通过 Central Admin 进行部署,我也会得到相同的行为。

I'm working in SharePoint 2010 and have been unable to deploy (or retract) my WSP without causing an IISReset. Here's my situation:

•The solution contains:

•Fields
•One content type
•A page layout based on the content type
•A bunch of images that go into the style library

•There is ZERO code in the solution

•I've manually edited the manifest.xml

•Removed the assembly, so nothing would get deployed to the GAC
•Set ResetWebServer="False" in the Solution tag

Still, every retract or deploy takes down ALL web applications on the server. Is there any way even to restrict it just to one web app? Thanks!

edit: additional info - I'm packaging up the WSP and deploying with powershell commands, but I get the same behavior even if I deploy through Central Admin.

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

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

发布评论

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

评论(1

滴情不沾 2024-09-25 07:39:14

在 SP 管理控制台中尝试此操作(使用凭据管理员):

stsadm -o addsolution -filename "C:\yourwsp.wsp"

stsadm -o deploysolution -name yourwsp.wsp -url http://yourspsite -allowgacdeployment –immediate

stsadm -o execadmsvcjobs

try this in SP Admin console (with credential admin):

stsadm -o addsolution -filename "C:\yourwsp.wsp"

stsadm -o deploysolution -name yourwsp.wsp -url http://yourspsite -allowgacdeployment –immediate

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