Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic LoadFromXml method problem (Read 2457 times)
Darby_Roh
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: May 23rd, 2011
LoadFromXml method problem
Feb 17th, 2012 at 9:17am
Print Post  
Hello.

I updated 2.7 to 2.8.0.13776 of diagramming framework.
When I loaded my diagram, I got the following error.

[FormatException: Input string was not in a correct format.]
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
MindFusion.Diagramming.Wpf.Converter.ToInt32(String s)
MindFusion.Diagramming.Wpf.XmlPersistContext.ReadObject(String elementName, XmlElement parentElement)
MindFusion.Diagramming.Wpf.XmlPersistContext.ReadTag(Object item, String elementName, XmlElement parentElement)
MindFusion.Diagramming.Wpf.DiagramItem.LoadFromXml(XmlElement xmlElement, XmlPersistContext context)
MindFusion.Diagramming.Wpf.DiagramNode.LoadFromXml(XmlElement xmlElement, XmlPersistContext context)
Hansol.Diagramming.Nodes.ScenarioNode.LoadFromXml(XmlElement xmlElement, XmlPersistContext context) File D:\Solution\IMR\01. IVR\02. Source\03. Scenario Designer\ScenarioDesigner\Hansol.Data.Diagramming\Model\Nodes\ScenarioNode.cs:Li
ne 230
Hansol.Diagramming.Nodes.StartNode.LoadFromXml(XmlElement xmlElement, XmlPersistContext context) File D:\Solution\IMR\01. IVR\02. Source\03. Scenario Designer\ScenarioDesigner\Hansol.Data.Diagramming\Model\Nodes\StartNode.cs:Line 105
MindFusion.Diagramming.Wpf.XmlPersistContext.R(XmlElement A)
MindFusion.Diagramming.Wpf.Diagram.LoadFromXml(XmlDocument document)


It seem to be Tag property problem, but I wasn't use Tag property in my codes.

Any help would be appreciated.
  

diagram.txt ( 0 KB | 145 Downloads )
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: LoadFromXml method problem
Reply #1 - Feb 17th, 2012 at 10:36am
Print Post  
Hi,

Does your ScenarioNode class write an <id> element in the xml files? Now that version 2.8 has a DiagramItem.Id property, it might be trying to parse it from your <id> elements. If that's the case, try handling the DeserializeTag event and setting e.Handled = true to prevent the diagram from reading your id values.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint