Hello,
I've just converted over to the GeoSerializer classes and am having some troubles with some objects serializing to file.
I've been attempting to serialize Overlays in their entirity and when I do this, I get an ArgumentException error like the following:
"Invalid name character in 'pBM='. The '=' character, hexadecimal value 0x3D, cannot be included in a name."
I've also gone down a level to serialize ShapeFileFeatureLayers and this works for some shapes and not others. The errors there are similar:
"Invalid name character in 'e0W='. The '=' character, hexadecimal value 0x3D, cannot be included in a name."
What is this error caused by?
Here is a stack trace from an Overlay layer.
at System.Xml.XmlWellFormedWriter.CheckNCName(String ncname)
at System.Xml.XmlWellFormedWriter.WriteStartElement(String prefix, String localName, String ns)
at System.Xml.XmlWriter.WriteElementString(String localName, String ns, String value)
at System.Xml.XmlWriter.WriteElementString(String localName, String value)
at ThinkGeo.MapSuite.Core.XmlGeoSerializationFormatter.fy8=(GeoObjectNode gC8=, XmlWriter gS8=)
at ThinkGeo.MapSuite.Core.XmlGeoSerializationFormatter.fy8=(GeoObjectNode gC8=, XmlWriter gS8=)
at ThinkGeo.MapSuite.Core.XmlGeoSerializationFormatter.fy8=(GeoObjectNode gC8=, XmlWriter gS8=)
at ThinkGeo.MapSuite.Core.XmlGeoSerializationFormatter.SaveCore(GeoObjectModel model, Stream stream)
at ThinkGeo.MapSuite.Core.GeoSerializationFormatter.Save(GeoObjectModel model, Stream stream)
at ThinkGeo.MapSuite.Core.GeoSerializer.Serialize(Object serializationObject, Stream stream)
at EMU.SerializationFunctions.WriteSerializedOverlay(FileStream output, String version, Overlay overlay, String overlayName) in C:\Users\dhite\Documents\Visual Studio 2010\Projects\EMU\EMU\Serializers\SerializationFunctions.cs:line 299Error Writing to File in Overlay Layer: RxSpatialQueryResultOverlay
I am using Development build 5.5.56.0
Thanks,
Damian