SharePoint 2013另存为模板错误

时间:2013-03-20 11:46:34

标签: templates sharepoint sharepoint-2013

我正在尝试将网站另存为模板(从中创建新的网站集)但是当我按“保存”时,我最终会出现以下错误。我也尝试重新启动服务器,实际上,重新安装SharePoint(无济于事)。有什么想法吗?

Microsoft.SharePoint.SPException: Feature definition with Id b8455e32-8a67-4c15-9387-b3dd7e01cb4c failed validation, file 'T135PropertyBags\Elements.xml', line 2, character 62: The 'AlwaysCreateFolder' attribute is not declared.    
 at Microsoft.SharePoint.Administration.SPSolutionPackage.FeatureXmlValidationCallback.XmlValidationCallBack(Object sender, ValidationEventArgs evtargs)    
 at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(String code, String arg)    
 at System.Xml.Schema.XmlSchemaValidator.ValidateAttribute(String lName, String ns, XmlValueGetter attributeValueGetter, String attributeStringValue, XmlSchemaInfo schemaInfo)    
 at System.Xml.XsdValidatingReader.ValidateAttributes()    
 at System.Xml.XsdValidatingReader.ProcessElementEvent()    
 at System.Xml.XsdValidatingReader.Read()    
 at System.Xml.XmlReader.MoveToContent()    
 at System.Xml.XmlReader.IsStartElement()    
 at Microsoft.SharePoint.Utilities.SPUtility.XsdValidateXml(XmlTextReader xmlStreamReader, String friendlyName, String pathXsdFile, String tagExpectedRootNode, Int32 desiredPathVersion, ValidationEventHandler xsdValEventHandler)    
 at Microsoft.SharePoint.Utilities.SPUtility.XsdValidateXml(XmlTextReader xmlStreamReader, String friendlyName, String pathXsdFile, String tagExpectedRootNode, ValidationEventHandler xsdValEventHandler)    
 at Microsoft.SharePoint.Administration.SPSolutionPackage.SolutionFile.ValidateFeatureXmlFile(String rootTagElement)    
 at Microsoft.SharePoint.Administration.SPSolutionPackage.AddFeatureElementsCore(XmlNodeList nodeList, String strFeatureDirRelativeToCabFile, Guid featureId, Dictionary`2 filesAdded)    
 at Microsoft.SharePoint.Administration.SPSolutionPackage.AddFeatureElements(XmlNode root, String strFeatureDirRelativeToCabFile, String strFeatureXmlFilename, Guid featureId)    
 at Microsoft.SharePoint.Administration.SPSolutionPackage.WspSolutionFeature.ProcessFeatureXml()    
 at Microsoft.SharePoint.Administration.SPSolutionPackage.InitSolutionFeatures(XmlNode root)    
 at Microsoft.SharePoint.Administration.SPSolutionPackage.ProcessSolutionManifest()    
 at Microsoft.SharePoint.Administration.SPSolutionLanguagePack.CreateSolutionPackage(SPRequest request, String name, String signature, Byte[] fileBytes)    
 at Microsoft.SharePoint.SPUserSolutionCollection.<>c__DisplayClass4.<AddOrUpgrade>b__0()    
 at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)    
 at Microsoft.SharePoint.SPUserSolutionCollection.AddOrUpgrade(SPListItem item, SPUserSolution existingSolution)    
 at Microsoft.SharePoint.SPUserSolutionCollection.Add(Int32 solutionGalleryItemId)    
 at Microsoft.SharePoint.SPSolutionExporter.ExportWebToGallery(SPWeb web, String solutionFileName, String title, String description, ExportMode exportMode, Boolean includeContent, String workflowTemplateName, String destinationListUrl, Action`1 solutionPostProcessor, Boolean activateSolution)

1 个答案:

答案 0 :(得分:3)

确保您的15个hive \ TEMPLATE \ XML \ wss.xsd文件包含<xs:complexType name="PropertyBagDefinition">以下属性:

<xs:attribute name="AlwaysCreateFolder" type="TRUEFALSE" use="optional" />