自定义站点列无法更新

发布于 2024-11-09 07:03:57 字数 403 浏览 0 评论 0原文

我在 Visual Studio 2010 中为我的 SharePoint 2010 项目创建了一个 ContentType,第一次通过 WSPBuilder 部署 wsp 时没有遇到任何问题,但现在每次我尝试部署时,它总是说它无法激活功能,因为“ 在功能中定义 ID {在此处插入随机 guid} 的字段在当前网站集或子网站中找到了 {60938308-3563-497c-bc55-b2ae847ca8b8}(在网站上激活我的内容类型的功能)。

内容类型和网站列在 rootweb 上创建,即使我尝试停用该功能或​​完全卸载它,网站列和内容类型也不会从 ContentType 库或网站中删除专栏画廊。

怎么会这样呢?

我使用纯功能和 XML 功能。不涉及事件接收者。

I have made a ContentType in Visual Studio 2010 for my SharePoint 2010 project and the first time I deployed the wsp through the WSPBuilder there were no troubles but now every time I try to deploy, it keeps saying that it can't activate features because "The field with ID {insert random guid here} defined in feature {60938308-3563-497c-bc55-b2ae847ca8b8} (the feature activating my contenttype on the site) was found in a current site collection or in a subsite."

The contenttype and site columns gets created on the rootweb and even though I try to either deactivate the feature or completely uninstall it, the site columns and contenttype won't be deleted from the ContentType gallery or Site Columns gallery.

How can this be?

I use pure feature and XML functionality. No eventreceivers are involved.

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

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

发布评论

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

评论(2

情话墙 2024-11-16 07:03:57

SharePoint 不允许您删除正在使用的网站栏和内容类型。这使得升级过程有点棘手。

SharePoint will not let you delete site columns and content types that are in use. This makes the upgrade process a little tricky.

甜点 2024-11-16 07:03:57

除了检查 Rob 的建议之外:

您安装了 Visual Studio SP1 吗?
我在安装 SP1 之前收到该错误,解决方法是关闭所有 Visual Studio 实例并重新启动。启动后可以再次部署。

Besides checking out what Rob suggests:

Did you install Visual Studio SP1?
I received that error before installing SP1 and the workaround was closing all Visual Studio instances and starting it up again. After starting up deployment was possible again.

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