Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
LoadFromXml(Stream) exception
posted

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

Parents
No Data
Reply Children
No Data