none
A duplicate name "母版页" was found 错误怎么办??? RRS feed

  • 问题

  • 我在根据自定义的网站模板建立一个项级网站集的时候, 出现错误: A duplicate name "母版页" was found.

    如下我经我整理后的log:

    Feature Activation: Activating Feature 'PublishingResources' (ID: 'aebc918d-b20f-4a11-a1db-9ed84d79c87e') at URL http://enpcipms03:8801
    Creating list "样式库" in web "http://enpcipms03:8801" at URL "/Style Library", (setuppath: "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Features\DocumentLibrary\doclib") 
    SPContentTypeBindingElement.ElementActivated(). Applying ContentType '0x01010007FF3E057FA8AB4AA42FCB67B453FFC100E214EEE741181F4E9F7ACC43278EE811' to list '_catalogs/masterpage' on web 'http://enpcipms03:8801' 
    SPContentTypeBindingElement.ElementActivated(). Setting ContentTypesEnabled = true on list '/_catalogs/masterpage'. 
    Creating directory _catalogs/masterpage/Forms/页面布局 

    Feature Infrastructure         889x High    
    The element of type 'ContentTypeBinding' for feature 'PublishingResources' (id: aebc918d-b20f-4a11-a1db-9ed84d79c87e) threw an exception during activation: A duplicate name "母版页" was found.

    Feature Activation: Threw an exception, attempting to roll back. 
    Feature 'PublishingResources' (ID: 'aebc918d-b20f-4a11-a1db-9ed84d79c87e'). 
    Exception: Microsoft.SharePoint.SPException: A duplicate name "母版页" was found.    
    at Microsoft.SharePoint.SPContentTypeCollection.CheckConsistency()    
    at Microsoft.SharePoint.SPContentTypeCollection.Update()    
    at Microsoft.SharePoint.SPContentTypeCollection.AddContentType(SPContentType contentType, Boolean checkName, Boolean updateResourceFileProperty, Boolean setNextChildByte)    
    at Microsoft.SharePoint.SPContentTypeCollection.Add(SPContentType contentType)    
    at Microsoft.SharePoint.SPContentTypeBindingElement.EnsureContentTypeExists(SPWeb web)    
    at Microsoft.SharePoint.SPContentTypeBindingElement.ElementActivated(SPFeaturePropertyCollection props, SPSqlCommand sqlcmdAppendOnly, SPWebApplication webApp, SPSite site, SPWeb web, Boolean fForce)    
    at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionContentTypeAndEventReceiverBindings(SPFeaturePropertyCollection props, SPSite site, SPWeb web, Boolean fForce)    
    at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, Boolean fForce)    
    at Microsoft.SharePoint.SPFeature.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, Boolean fForce)    
    at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, Boolean fForce) 

    The feature 'f6924d36-2fa8-4f0b-b16d-06b7250180fa' depends on feature 'aebc918d-b20f-4a11-a1db-9ed84d79c87e' which failed to activate: Microsoft.SharePoint.SPException: A duplicate name "母版页" was found.    
    at Microsoft.SharePoint.SPContentTypeCollection.CheckConsistency()    
    at Microsoft.SharePoint.SPContentTypeCollection.Update()    
    at Microsoft.SharePoint.SPContentTypeCollection.AddContentType(SPContentType contentType, Boolean checkName, Boolean updateResourceFileProperty, Boolean setNextChildByte)    
    at Microsoft.SharePoint.SPContentTypeCollection.Add(SPContentType contentType)    
    at Microsoft.SharePoint.SPContentTypeBindingElement.EnsureContentTypeExists(SPWeb web)    
    at Microsoft.SharePoint.SPContentTypeBindingElement.ElementActivated(SPFeaturePropertyCollection props, SPSqlCommand sqlcmdAppendOnly, SPWebApplication webApp, SPSite site, SPWeb web, Boolean fForce)    
    at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionContentTypeAndEventReceiverBindings(SPFeaturePropertyCollection props, SPSite site, SPWeb web, Boolean fForce)    
    at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, Boolean fForce)    
    at Microsoft.SharePoint.SPFeature.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, Boolean fForce)    
    at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, Boolean fForce)    
    at Microsoft.SharePoint.SPFeatureCollection.AddInternal(Guid featureId, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly)    
    at Microsoft.SharePoint.SPFeatureCollection.Add(Guid featureId, Boolean force)    
    at Microsoft.SharePoint.SPFeatureCollection.CheckSameScopeDependency(SPFeatureDefinition featdefDependant, SPFeatureDefinition featdefDependency, Boolean fActivateHidden, Boolean fForce) 

    Exception was thrown while ensuring dependencies met for feature 'PublishingSite' (id: f6924d36-2fa8-4f0b-b16d-06b7250180fa):
    Microsoft.SharePoint.SPException: A duplicate name "母版页" was found.    
    at Microsoft.SharePoint.SPContentTypeCollection.CheckConsistency()    
    at Microsoft.SharePoint.SPContentTypeCollection.Update()    
    at Microsoft.SharePoint.SPContentTypeCollection.AddContentType(SPContentType contentType, Boolean checkName, Boolean updateResourceFileProperty, Boolean setNextChildByte)    
    at Microsoft.SharePoint.SPContentTypeCollection.Add(SPContentType contentType)    
    at Microsoft.SharePoint.SPContentTypeBindingElement.EnsureContentTypeExists(SPWeb web)    
    at Microsoft.SharePoint.SPContentTypeBindingElement.ElementActivated(SPFeaturePropertyCollection props, SPSqlCommand sqlcmdAppendOnly, SPWebApplication webApp, SPSite site, SPWeb web, Boolean fForce)    
    at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionContentTypeAndEventReceiverBindings(SPFeaturePropertyCollection props, SPSite site, SPWeb web, Boolean fForce)    
    at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, Boolean fForce)    
    at Microsoft.SharePoint.SPFeature.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, Boolean fForce)    
    at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, Boolean fForce)    
    at Microsoft.SharePoint.SPFeatureCollectionAddInternal(Guid featureId, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly)    
    at Microsoft.SharePoint.SPFeatureCollection.Add(Guid featureId, Boolean force)    
    at Microsoft.SharePoint.SPFeatureCollection.CheckSameScopeDependency(SPFeatureDefinition featdefDependant, SPFeatureDefinition featdefDependency, Boolean fActivateHidden, Boolean fForce)    
    at Microsoft.SharePoint.SPFeatureCollection.CheckFeatureDependency(SPFeatureDefinition featdefDependant, SPFeatureDependency featdep, Boolean fActivateHidden, Boolean fForce)    
    at Microsoft.SharePoint.SPFeatureCollection.CheckFeatureDependencies(Guid featidDependee, Boolean fActivateHidden, Boolean fForce) 

    Feature Infrastructure         8e0j High    
    Feature Activation: Failed to ensure feature dependencies for feature 'PublishingSite' (id: 'f6924d36-2fa8-4f0b-b16d-06b7250180fa'), exception thrown:
    Microsoft.SharePoint.SPException: A duplicate name "母版页" was found.    
    at Microsoft.SharePoint.SPContentTypeCollection.CheckConsistency()    
    at Microsoft.SharePoint.SPContentTypeCollection.Update()    
    at Microsoft.SharePoint.SPContentTypeCollection.AddContentType(SPContentType contentType, Boolean checkName, Boolean updateResourceFileProperty, Boolean setNextChildByte)    
    at Microsoft.SharePoint.SPContentTypeCollection.Add(SPContentType contentType)    
    at Microsoft.SharePoint.SPContentTypeBindingElement.EnsureContentTypeExists(SPWeb web)    
    at Microsoft.SharePoint.SPContentTypeBindingElement.ElementActivated(SPFeaturePropertyCollectionprops, SPSqlCommand sqlcmdAppendOnly, SPWebApplication webApp, SPSite site, SPWeb web, Boolean fForce)    
    at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionContentTypeAndEventReceiverBindings(SPFeaturePropertyCollection props, SPSite site, SPWeb web, Boolean fForce)    
    at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, Boolean fForce)    
    at Microsoft.SharePoint.SPFeature.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, Boolean fForce)    
    at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, Boolean fForce)    
    at Microsoft.SharePoint.SPFeatureCollection.AddInternal(Guid featureId, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly)    
    at Microsoft.SharePoint.SPFeatureCollection.Add(Guid featureId, Boolean force)    
    at Microsoft.SharePoint.SPFeatureCollection.CheckSameScopeDependency(SPFeatureDefinition featdefDependant, SPFeatureDefinition featdefDependency, Boolean fActivateHidden, Boolean fForce)    
    at Microsoft.SharePoint.SPFeatureCollection.CheckFeatureDependency(SPFeatureDefinition featdefDependant, SPFeatureDependency featdep, Boolean fActivateHidden, Boolean fForce)    
    at Microsoft.SharePoint.SPFeatureCollection.CheckFeatureDependencies(Guid featidDependee, Boolean fActivateHidden, Boolean fForce)    
    at Microsoft.SharePoint.SPFeatureCollection.AddInternal(Guid featureId, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly)

    01/08/2011 13:24:23.44  w3wp.exe (0x0E48)                        0x1AB0 Windows SharePoint Services    General                        8l35 High     Failed to activate site-collection-scoped features for template 'Reach#0' in site collection 'http://enpcipms03:8801'. 
    01/08/2011 13:24:23.44  w3wp.exe (0x0E48)                        0x1AB0 Windows SharePoint Services    General                        72h9 High     Failed to apply template "Reach#0" to web at URL "http://enpcipms03:8801". 
    01/08/2011 13:24:23.44  w3wp.exe (0x0E48)                        0x1AB0 Windows SharePoint Services    General                        72k2 High     Failed to apply template "Reach#0" to web at URL "http://enpcipms03:8801", error A duplicate name "母版页" was found. 0x8107058a 
    01/08/2011 13:24:40.72  w3wp.exe (0x0870)                        0x0B34 Windows SharePoint Services    General                        0 Medium   Entering MRU trim routine. 
    01/08/2011 13:24:40.72  w3wp.exe (0x0870)                        0x0B34 Windows SharePoint Services    General                        0 Medium   Initial table size: 9437624 in 127 entries 
    01/08/2011 13:24:40.72  w3wp.exe (0x0870)                        0x0B34 Windows SharePoint Services    General                        0 Medium   Final table size: 9437624 in 127 entries 
    01/08/2011 13:24:40.72  w3wp.exe (0x0870)                        0x0B34 Windows SharePoint Services    General                        0 Medium   Exiting MRU trim routine. 

     

    自定义网站模板的站点定义文件onet.xml内容如下:

    <?xml version="1.0" encoding="utf-8"?>
    <Project xmlns="http://schemas.microsoft.com/sharepoint/" Title="$Resource:onet_TeamWebSite;" Revision="2" ListDir="$Resources:core,lists_Folder;">
     <NavBars></NavBars>
     <ListTemplates>
     </ListTemplates>
     <DocumentTemplates>
      <DocumentTemplate Path="STS" Name="" DisplayName="无" Type="100" Default="FALSE" Description="此文档库将不使用模板。" />
      <DocumentTemplate Path="STS" DisplayName="Microsoft Office Word 97-2003 文档" Type="101" Default="TRUE" Description="Microsoft Office Word 97-2003 空白文档。">
       <DocumentTemplateFiles>
        <DocumentTemplateFile Name="doctemp\word\wdtmpl.doc" TargetName="Forms/template.doc" Default="TRUE" />
       </DocumentTemplateFiles>
      </DocumentTemplate>
      <DocumentTemplate Path="STS" DisplayName="Microsoft Office Excel 97-2003 电子表格" Type="103" Description="Microsoft Office Excel 97-2003 空白文档。">
       <DocumentTemplateFiles>
        <DocumentTemplateFile Name="doctemp\xl\xltmpl.xls" TargetName="Forms/template.xls" Default="TRUE" />
       </DocumentTemplateFiles>
      </DocumentTemplate>
      <DocumentTemplate Path="STS" DisplayName="Microsoft Office PowerPoint 97-2003 演示文稿" Type="104" Description="Microsoft Office PowerPoint 97-2003 空白文档。">
       <DocumentTemplateFiles>
        <DocumentTemplateFile Name="doctemp\ppt\pptmpl.pot" TargetName="Forms/template.pot" Default="TRUE" />
       </DocumentTemplateFiles>
      </DocumentTemplate>
      <DocumentTemplate Path="STS" DisplayName="Microsoft Office Word 文档" Type="121" Default="TRUE" Description="空白 Microsoft Office Word 文档。">
       <DocumentTemplateFiles>
        <DocumentTemplateFile Name="doctemp\word\wdtmpl.dotx" TargetName="Forms/template.dotx" Default="TRUE" />
       </DocumentTemplateFiles>
      </DocumentTemplate>
      <DocumentTemplate Path="STS" DisplayName="Microsoft Office Excel 电子表格" Type="122" Description="空白 Microsoft Office Excel 文档。">
       <DocumentTemplateFiles>
        <DocumentTemplateFile Name="doctemp\xl\xltmpl.xlsx" TargetName="Forms/template.xlsx" Default="TRUE" />
       </DocumentTemplateFiles>
      </DocumentTemplate>
      <DocumentTemplate Path="STS" DisplayName="Microsoft Office PowerPoint 演示文稿" Type="123" Description="Microsoft Office PowerPoint 文档。">
       <DocumentTemplateFiles>
        <DocumentTemplateFile Name="doctemp\ppt\pptmpl.pptx" TargetName="Forms/template.pptx" Default="TRUE" />
       </DocumentTemplateFiles>
      </DocumentTemplate>
      <DocumentTemplate Path="STS" DisplayName="Microsoft Office OneNote 分区" Type="111" Description="空白的 Microsoft Office OneNote 分区。">
       <DocumentTemplateFiles>
        <DocumentTemplateFile Name="doctemp\onenote\template.one" TargetName="Forms/template.one" Default="TRUE" />
       </DocumentTemplateFiles>
      </DocumentTemplate>
      <DocumentTemplate Path="STS" DisplayName="Microsoft Office SharePoint Designer 网页" Type="102" Description="空白 Microsoft Office SharePoint Designer HTML 文档。">
       <DocumentTemplateFiles>
        <DocumentTemplateFile Name="doctemp\fp\fptmpl.htm" TargetName="Forms/template.htm" Default="TRUE" />
       </DocumentTemplateFiles>
      </DocumentTemplate>
      <DocumentTemplate Path="STS" DisplayName="空白页" Type="105" Description="Microsoft 空白页 ASPX 文档。">
       <DocumentTemplateFiles>
        <DocumentTemplateFile Name="doctemp\blankpgs\_basicpage.htm" TargetName="Forms/_basicpage.htm" Default="TRUE" />
       </DocumentTemplateFiles>
      </DocumentTemplate>
      <DocumentTemplate Path="STS" DisplayName="Web 部件页" Type="106" Description="空白 Microsoft Web 部件页 ASPX 文档。">
       <DocumentTemplateFiles>
        <DocumentTemplateFile Name="doctemp\smartpgs\_webpartpage.htm" TargetName="Forms/_webpartpage.htm" Default="TRUE" />
       </DocumentTemplateFiles>
      </DocumentTemplate>
      <DocumentTemplate XMLForm="TRUE" Path="STS" DisplayName="Microsoft Office InfoPath 表单" Type="1000" Default="TRUE" Description="对此空表单进行设计以满足您的特定需求。">
       <DocumentTemplateFiles>
        <DocumentTemplateFile Name="doctemp\xmlforms\blank\template.xml" TargetName="Forms/template.xml" Default="TRUE" />
       </DocumentTemplateFiles>
      </DocumentTemplate>
     </DocumentTemplates>
     
     
     <Configurations>
      <Configuration ID="-1" Name="NewWeb" />
     
      <Configuration ID="0" Name="Default" CustomMasterUrl="~masterurl/Emerson.Master">
       <Lists>
        <List FeatureId="f0d0fc1d-d126-4c2b-9ee1-35674f3a3880" Type="11001" Title="环保报表文档库" Description="环保报表文档库." Url="Lists/ReachReportListInstance" />
            <List FeatureId="7C787727-D8E9-4209-9394-65C7D6572E6E" Type="11002" Title="客户信息列表库" Description="客户信息列表库." Url="Lists/ReachCustomerListInstance" />
            <List FeatureId="E0C10395-2630-4c68-B407-0B50A5641CC8" Type="11003" Title="用户信息列表库" Description="用户信息列表库." Url="Lists/REACHUserListInstance" />
            <List FeatureId="00bfea71-de22-43b2-a848-c05709900100" Type="100" Title="产品线列表库" Description="产品线列表库." Url="Lists/ReachProductLineInstance" />
       </Lists>
       <Modules>
        <Module Name="Default" />
        <Module Name="CustomMasterPage" />
       </Modules>
      
       <SiteFeatures>
        <!--Office SharePoint Server 发布基础架构--> 
        <Feature ID="F6924D36-2FA8-4F0B-B16D-06B7250180FA" />
        <Feature ID="00BFEA71-1C5E-4A24-B310-BA51C3EB7A57" />
        <Feature ID="FDE5D850-671E-4143-950A-87B473922DC7" />
           
            <!--ReachReportListContentType FeatureID-->
        <Feature ID="3578129B-71D8-45aa-85AA-B46C3E36272E" />
            <!--ReachUserContentType FeatureID-->
            <Feature ID="7F692F66-3347-4662-B53C-2F37F0FAA1E9" />
           
          </SiteFeatures>
       <WebFeatures>
        <!--Office SharePoint Server 企业版网站功能-->
        <Feature ID="0806D127-06E6-447A-980E-2E90B03101B8" />
        <!--OfficeSharePointServer发布-->
        <Feature ID="94C94CA6-B32F-4DA9-A9E3-1F3D343D7ECB" />
        <Feature ID="00BFEA71-4EA5-48D4-A4AD-7EA5C011ABE5" />
        <Feature ID="F41CC668-37E5-4743-B4A8-74D1DB3FD8A4" />
        <Feature ID="99FE402E-89A0-45AA-9163-85342E865DC8" />
           
           
            <!--<Feature ID="4C23BE0D-A238-48e3-BF70-B372E19F3D72" />-->
        <Feature ID="f0d0fc1d-d126-4c2b-9ee1-35674f3a3880" />
            <Feature ID="7C787727-D8E9-4209-9394-65C7D6572E6E" />
            <Feature ID="E0C10395-2630-4c68-B407-0B50A5641CC8" />
            <Feature ID="00bfea71-de22-43b2-a848-c05709900100" />
          </WebFeatures>
      </Configuration>
     
     </Configurations>
     
     <Modules>
      <Module Name="Default" Url="" Path="">
       <File Url="default.aspx" NavBarHome="True">      
       </File>  
      </Module>
      <Module Name="CustomMasterPage" List="116" Url="_catalogs/masterpage" RootWebOnly="FALSE">
       <File Url="EmersonDefault.Master" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE" />
      </Module>
     </Modules>
     <ServerEmailFooter>$Resources:ServerEmailFooter;</ServerEmailFooter>
    </Project>

     

     

    其中,值得注意的是,粗体字部分(Feature ID)是一致。这是不是说明MOSS在激活这个Feature的时候出了问题呢??该如何来解决这个问题呢???

    哪位高手、老大来帮帮忙啊~~~!!!!!

     

     

    • 已编辑 胡青峰 2011年1月12日 3:37 丰富下提问内容
    2011年1月12日 3:28

答案