简体   繁体   English

自定义站点栏无法更新

[英]Custom sitecolumns can't update

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

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.内容类型和站点列在 rootweb 上创建,即使我尝试停用该功能或完全卸载它,站点列和内容类型也不会从 ContentType 库或站点列库中删除。

How can this be?怎么会这样?

I use pure feature and XML functionality.我使用纯功能和 XML 功能。 No eventreceivers are involved.不涉及事件接收者。

SharePoint will not let you delete site columns and content types that are in use. SharePoint 不允许您删除正在使用的网站栏和内容类型。 This makes the upgrade process a little tricky.这使得升级过程有点棘手。

Besides checking out what Rob suggests:除了查看 Rob 的建议之外:

Did you install Visual Studio SP1?您是否安装了 Visual Studio SP1? I received that error before installing SP1 and the workaround was closing all Visual Studio instances and starting it up again.我在安装 SP1 之前收到了该错误,解决方法是关闭所有 Visual Studio 实例并重新启动它。 After starting up deployment was possible again.启动后再次部署是可能的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM