Hi I used the following simple code to load a piece of very simple xml into UltraTree v7.3
using (FileStream stream = new FileStream(@"c:\1.xml", FileMode.Open, FileAccess.Read)){ this.ultraTree1.LoadFromXml(stream); stream.Close();}
Sample xml 1.xml is shown below.
<aa1> <Name>hello</Name> <Password>1ceLand%</Password></aa1>Anyone can help me with the following exception?
System.ApplicationException ---> System.Runtime.Serialization.SerializationException: Parse Error, no assembly associated with Xml key aa1 at System.Runtime.Serialization.Formatters.Soap.SoapHandler.ProcessGetType(String value, String xmlKey, String& assemblyString) at System.Runtime.Serialization.Formatters.Soap.SoapHandler.ProcessType(ParseRecord pr, ParseRecord objectPr) at System.Runtime.Serialization.Formatters.Soap.SoapHandler.ProcessAttributes(ParseRecord pr, ParseRecord objectPr) at System.Runtime.Serialization.Formatters.Soap.SoapHandler.StartChildren() at System.Runtime.Serialization.Formatters.Soap.SoapParser.ParseXml() at System.Runtime.Serialization.Formatters.Soap.SoapParser.Run() at System.Runtime.Serialization.Formatters.Soap.ObjectReader.Deserialize(HeaderHandler handler, ISerParser serParser) at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize(Stream serializationStream, HeaderHandler handler) at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize(Stream serializationStream) at Infragistics.Win.UltraWinTree.UltraTree.LoadHelper(Stream stream, Boolean loadAsBinary) --- End of inner exception stack trace --- at Infragistics.Win.UltraWinTree.UltraTree.LoadHelper(Stream stream, Boolean loadAsBinary) at Infragistics.Win.UltraWinTree.UltraTree.LoadFromXml(Stream stream) at EConfirmTestHarness.Form1.ultraButton1_Click(Object sender, EventArgs e) in C:\p4_ws\pd\Trident\Development\Source\Tools\EConfirmTestHarness\Form1.cs:line 29
I googled the exception message and got several hits...the following article was one of them and might shed some light on the problem: http://techdigger.wordpress.com/2007/12/22/deserializing-data-into-a-dynamically-loaded-assembly/