1

我正在尝试将网站另存为模板(以从中创建新的网站集),但是当我按“保存”时,最终出现以下错误。我也尝试过重新启动服务器,并且确实重新安装了 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)
4

1 回答 1

3

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

<xs:attribute name="AlwaysCreateFolder" type="TRUEFALSE" use="optional" />
于 2013-04-19T17:49:55.547 回答