【问题标题】:SharePoint SiteDefinitionsSharePoint 站点定义
【发布时间】:2009-07-23 12:45:17
【问题描述】:

我基于发布门户创建了一个简单的站点定义。每次我想使用模板创建站点集合时,都会收到以下错误消息:

您选择的模板无效或找不到。

我不使用任何自定义功能,仅使用发布门户网站定义的默认功能。有什么提示吗?

有一个错误日志,但它只是给了我上面的信息:

Applying template "PalfingerPlatformsOrderRoot#0" to web at URL "http://datsa0004:8080/Platforms/Orders/0000112233".     
Failed to get the site template for language 1031, search key 'PalfingerPlatformsOrderRoot'. This warning is expected when provisioning from a custom web template.  
Failed to apply template "PalfingerPlatformsOrderRoot#0" to web at URL "http://datsa0004:8080/Platforms/Orders/0000112233".  
Failed to apply template "PalfingerPlatformsOrderRoot#0" to web at URL "http://datsa0004:8080/Platforms/Orders/0000112233", error The template you have chosen is invalid or cannot be found. 0x81071e44     
The template you have chosen is invalid or cannot be found.  
CreatePortal failed creating portal webs. Microsoft.SharePoint.SPException: The template you have chosen is invalid or cannot be found. ---> System.Runtime.InteropServices.COMException (0x81071E44): The template you have chosen is invalid or cannot be found.     at Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId)     at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId)     --- End of inner exception stack trace ---     at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId)     at Microsoft.SharePoint.SPWeb.ApplyWebTemplate(String strWebTemplate)     at Microsoft.ShareP...  
...oint.Publishing.PortalProvisioningProvider.CreatePortal(String xmlFile, SPWeb rootWeb)   

【问题讨论】:

    标签: sharepoint sharepoint-2007


    【解决方案1】:

    检查您的自定义模板的 ID,(打开它并查看 xml)它可能与现有模板冲突。你可以检查

    Program Files\Common Files\Microsoft 共享\网络服务器 扩展\12\TEMPLATE\1033\XML

    对于其他模板及其 ID

    【讨论】:

    • 啊!一个愚蠢的复制粘贴错误。我已经基于现有的网站创建了一个新的网站定义。正如 MS 建议的那样,ID > 10000。但实际上两个站点定义都使用相同的 1000x 范围。到站点定义。具有相同的 ID 10001。谢谢!
    • notepad++ 等编辑器可以帮助您使用 Find in Files 工具找到冲突的站点模板 - 只需在 %commonprogramfiles%\Microsoft Shared\web server extensions 下的所有 xml 文件中查找 ID="1000x" \%SPVERSION%\TEMPLATE\%LCID%\XML(请注意,您可能需要替换其他值:14 和 15 用于 SharePoint 2010 和 2013,以及另一个数字区域设置代码(如果适用)。
    【解决方案2】:

    我遇到了同样的问题,结果发现是由于服务器中卸载了一个功能。

    此类功能已包含在要激活的模板文件中。我通过检查模板文件 (.STP) 并查看 WebFeatures 节点发现了这一点。那里的功能是由它们的 GUID 标识的,所以我不得不在 Templates 文件夹中一一搜索,直到我发现系统中实际卸载了哪个功能。

    该功能在创建模板时已安装在系统中,然后被卸载。之后就无法使用给定的模板创建项目(Sharepoint 错误消息并不清楚真正的原因)。

    安装功能后 (stsadm -o installfeature...) 一切都开始工作了。

    【讨论】:

      【解决方案3】:

      检查 12 hive 中的跟踪日志/ULS 日志 - 几乎可以肯定那里有更多关于您的错误的信息。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2011-07-25
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-01-28
        • 2011-08-01
        • 1970-01-01
        相关资源
        最近更新 更多