1
Vote

Field xmlns throws an exception during Content Deployment

description

An exception is thrown during content deployment for lookup fields created using this sample code. It reads "The element 'FieldTemplate' in namespace 'urn:deployment-manifest-schema' has invalid child element 'Field'..."
 
This is inheriting the namespace from your root Elements namespace. I've found success with the following code that sets the Namespaces property of the XmlTextReader to false:
 
        XmlTextReader lookupFieldsXmlTextReader = new XmlTextReader(lookupFieldsFilePath);
        lookupFieldsXmlTextReader.Namespaces = false;

comments