Hi !
Iīve changed our diagram nodes to compositenodes. As soon as I call the SaveToXML function I got an error:
Quote:MindFusion.Diagramming.CompositeNode cannot be serialized because its class hasn't been registered for serialization. Use RegisterItemClass to do that
Why canīt Mindfusion write my composite nodes? They consist out of "normal" components.
So reply 5 in this posting:
http://mindfusion.eu/Forum/YaBB.pl?board=fcnet_disc;action=display;num=130548485...Thatīs what I use ...
Here is the complete error message:
System.InvalidOperationException was unhandled by user code
Message=MindFusion.Diagramming.CompositeNode cannot be serialized because its class hasn't been registered for serialization. Use RegisterItemClass to do that.
Source=MindFusion.Diagramming
StackTrace:
at MindFusion.Diagramming.XmlPersistContext.xcfee0917c3bf82cc(DiagramItem xccb63ca5f63dc470, XmlElement x1ea18269223b2a9c, String x121383aa64985888)
at MindFusion.Diagramming.Diagram.SaveToXml(XmlDocument document, Boolean includeUnalteredProperties)
at MindFusion.Diagramming.Diagram.SaveToXml(XmlDocument document)
at MindFusion.Diagramming.Diagram.SaveToXml(String fileName)
at LogView.V3.MainForm.MenuFile_Save_ItemClick(Object sender, ItemClickEventArgs e) in D:\Dev Priv\LogView V3 .net\SlyLog\MainForm.cs:line 1553
at DevExpress.XtraBars.BarItem.OnClick(BarItemLink link)
at DevExpress.XtraBars.BarBaseButtonItem.OnClick(BarItemLink link)
at DevExpress.XtraBars.BarItemLink.OnLinkClick()
at DevExpress.XtraBars.BarItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
at DevExpress.XtraBars.BarButtonItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
at DevExpress.XtraBars.BarItemLink.OnLinkActionCore(BarLinkAction action, Object actionArgs)
at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.ClickLink(BarItemLink link)
at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.UnPressLink(BarItemLink link)
at DevExpress.XtraBars.Controls.CustomLinksControl.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraBars.Controls.DockedBarControl.WndProc(Message& msg)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
InnerException:
Greetz
Dominik