Sharepoint 2010 超级复杂:删除以前的根网站后,在新网站集中启用SharePoint 2010中的发布功能失败

Sharepoint 2010 超级复杂:删除以前的根网站后,在新网站集中启用SharePoint 2010中的发布功能失败,sharepoint-2010,publishing,Sharepoint 2010,Publishing,这不是一个简单的站点操作|站点设置|等问题。这要复杂得多 在启用了发布的根站点的意外删除后,我创建了一个新的根站点,并尝试在其上激活发布(在根中)。失败,错误消息指向站点和网站: 站点 The feature being activated is a Site scoped feature which has a dependency on a Site Collection scoped feature which has not been activated. Please

这不是一个简单的站点操作|站点设置|等问题。这要复杂得多

在启用了
发布的根站点的意外删除后,我创建了一个新的根站点,并尝试在其上激活发布(在根中)。失败,错误消息指向站点和网站:

站点

 The feature being activated is a Site scoped feature which   
 has a dependency on a Site Collection scoped feature which has   
 not been activated. Please activate the following feature before   
 trying again: SharePoint Server Publishing Infrastructure   
 f6924d36-2fa8-4f0b-b16d-06b7250180fa "
Web

The Site scoped feature being activated has a dependency on hidden   
Site scoped feature     

'FeatureDefinition/22a9ef51-737b-4ff2-9346-694633fe4416'  
 (ID: '22a9ef51-737b-4ff2-9346-694633fe4416').   

Hidden features cannot be auto-activated across scopes.   
There may be one or more visible Site scoped features that   
auto-activate the dependent hidden feature."
好的,不要惊慌!!!我认为这是因为启用的发布是在
SP数据库的内部某个地方编写的。没问题

我运行了
PowerShell禁用SPFeature发布-Url”http://myrootsite,然后启用SPFeature Publishing-Url“http:/myrootsite”

一半已修复:错误消息的“我的Web”部分已消失,但错误消息的“站点”部分仍在此处,阻止发布

如何使用PowerShell禁用“站点”级别的发布并再次启用它


我在这里有点累赘:-(

嗯,这很复杂,因为PowerShell Disable SPFeature不知何故对Web和网站投诉都不起作用。我不得不使用旧的、受信任的stsadm,它具有SharePoint投诉的确切功能id:

stsadm -o deactivatefeature -id f6924d36-2fa8-4f0b-b16d-06b7250180fa -url "http://myrootsiteurl -force
(此处SP咳嗽“此功能未激活”)

然后:

一切都是固定的:-)

不知道为什么禁用SPFeature一开始就没有完成这项工作。
现在,如果所有的问题都得到了解决,那么发布就像一个魔咒。

问题:当我们试图使用“站点设置->站点操作->管理站点功能”来启用“站点发布功能”时,会出现以下错误。 “地点

正在激活的功能是站点范围的功能,它依赖于尚未激活的站点集合范围的功能。重试前请激活以下功能:SharePoint Server发布基础结构f6924d36-2fa8-4f0b-b16d-06b7250180fa“

正在激活的站点范围功能依赖于隐藏的站点范围功能“FeatureDefinition/22a9ef51-737b-4ff2-9346-694633fe4416”(ID:“22a9ef51-737b-4ff2-9346-694633fe4416”)。无法跨作用域自动激活隐藏功能。可能有一个或多个可见的站点作用域功能自动激活相关隐藏功能。“

解决方案: 要解决上述错误,首先我们需要使用“站点操作”>“站点设置”启用“发布feaures”。在“网站集管理”列的“网站设置”页面上,选择“网站集功能”

stsadm -o activatefeature -id f6924d36-2fa8-4f0b-b16d-06b7250180fa -url "http://myrootsiteurl -force