Hi,
I am trying to serialize a WmtsLayer. I get the following exception:
System.InvalidOperationException
HResult=0x80131509
Message=kxc=.I0U= is not marked as serializable
Source=ThinkGeo.MapSuite
StackTrace:
at ThinkGeo.MapSuite.Serialize.GeoObjectModeler.pCY=(Object serializationObject, GeoObjectNode baseObjectModel, String nodeName, Type parentType)
at ThinkGeo.MapSuite.Serialize.GeoObjectModeler.sCY=(IEnumerable sequence, GeoObjectNode objectModel)
at ThinkGeo.MapSuite.Serialize.GeoObjectModeler.pCY=(Object serializationObject, GeoObjectNode baseObjectModel, String nodeName, Type parentType)
at ThinkGeo.MapSuite.Serialize.GeoObjectModeler.CreateMemberNodeCore(String memberName, Object memberValue, Type memberType, Object memberOwner, GeoObjectNode baseMemberNode)
at ThinkGeo.MapSuite.Serialize.GeoObjectModeler.CreateMemberNode(String memberName, Object memberValue, Type memberType, Object memberOwner, GeoObjectNode baseMemberNode)
at ThinkGeo.MapSuite.Serialize.GeoObjectModeler.sSY=(Object serializationObject, GeoObjectNode currentModel)
at ThinkGeo.MapSuite.Serialize.GeoObjectModeler.pCY=(Object serializationObject, GeoObjectNode baseObjectModel, String nodeName, Type parentType)
at ThinkGeo.MapSuite.Serialize.GeoObjectModeler.oiY=(Object modelSource)
at ThinkGeo.MapSuite.Serialize.GeoObjectModeler.CreateModel(Object objectToModel, GeoObjectModelerMemberTypes memberTypes, BindingFlags bindingFlags, GeoObjectModelerDefaultValueMode defaultValueMode)
at ThinkGeo.MapSuite.Serialize.GeoSerializer.Serialize(Object objectToSerialize, String targetPathFilename)
at WindowsApplication1.Form.DisplayWMTSLayer() in C:\Users\steller\Documents\Visual Studio 2015\Projects\ThinkGeo\WinForms\Planet Test\Form1.vb:line 59
at WindowsApplication1.Form.Form1_Load(Object sender, EventArgs e) in C:\Users\steller\Documents\Visual Studio 2015\Projects\ThinkGeo\WinForms\Planet Test\Form1.vb:line 14
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Is it a bug?
Thanks!
Steve