2009-07-23 102 views
6

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

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

我没有使用任何自定义功能,只是发布门户site-def的默认功能。任何提示?

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

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) 

回答

8

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

程序Files \ Common Files文件\微软 共享\ web服务器 扩展\ 12 \模板\ 1033 \ XML

为其他模板及其ID

+0

啊!一个愚蠢的复制和粘贴错误。我已经创建了一个基于现有的新的网站定义。由于MS建议ID> 10000.但实际上两个站点定义使用相同的1000x范围。到site-def。使用相同的ID 10001. 谢谢! – Henrik 2009-07-23 18:38:24

1

检查跟踪日志/ ULS日志中的12个蜂箱 - 几乎可以肯定,那里面有你的错误的详细信息。

3

我同样的问题,事实证明这是由于在服务器中卸载的功能。

此功能包含在要激活的模板文件中。我通过检查模板文件(.STP)并查看WebFeatures节点发现了这一点。这些功能由它们的GUID标识,因此我必须在Templates文件夹中逐一搜索,直到找出哪一个实际上已在系统中卸载。

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

安装该功能(stsadm -o installfeature ...)后,一切开始正常工作。

相关问题