SharePoint 2010无法创建类型为发布网站的自定义子网站

时间:2012-11-05 02:57:08

标签: sharepoint

尝试使用发布网站类型的自定义模板创建子网站时,我遇到了SharePoint 2010异常:

Provisioning did not succeed.  Details: Failed to initialize some site properties for web "http://site/subWeb"
Original Exception: Value does not fall within expected range..
Stacktrace: at Microsoft.SharePoint.SPGlobal.HandleCOMException(COMException comEx)
at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplates(...)
at Microsoft.SharePoint.SPWeb.ApplyWebTemplate(string strWebTemplate)
at Microsoft SharePoint.SPWeb.CreateWeb(...)
at Microsoft.SharePoint.SPWebCollection.Add(...)
at [custom code]

网站创建过程开始后大约10-15秒发生错误。我检查了日志,并且在激活发布功能失败后删除了新添加的站点。我还在日志中发现了比上面更详细的日志记录错误:

Exception thrown when attempting to activate sub web's publishing feature:
attempting to get GUID from Microsoft.SharePoint.Publishing.QueryBasedCollection'1.get_Item(Guid uniqueId)
at Microsoft.SharePoint.Publishing.Internal.AcreaProvisioner.SetDefaultPageProperties(PublishingWeb area, Boolean& updateRequired)

在激活子网络发布功能时,我不知道为什么会涉及GUID ......

Web模板来自SharePoint 2007,但我不确定在2010年它是否正常工作之前是否有任何特殊需要应用于它(假设不是)。

到目前为止我尝试过的事情:重新激活所有范围内的所有服务器发布功能+ iisreset以及所有可能的组合,但到目前为止没有任何工作。

迫切需要一些帮助... TIA。

1 个答案:

答案 0 :(得分:0)

2010年,根据我的经验,你不能创建类型发布的自定义网站模板而不会捏造一点点,我确定这是一个很好的理由检查这个帖子

http://social.technet.microsoft.com/Forums/en-US/sharepointgenerallegacy/thread/b14e572a-ea17-47b4-93fe-4694451efe35

现在可能有一些坏消息

这个主题并没有完全回答你的问题,而是提供了有关2007年到2010年的建议。这个人给出的建议是重新创建和迁移数据,并在帖子底部放置了一些提示。

http://social.technet.microsoft.com/Forums/en-US/sharepointadminprevious/thread/c912f1c6-9790-4216-a6b0-54bfb8a1459d

我希望这会有所帮助:)