xslCompiledTransformation class Throws StackOverflow Error.

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,
I am using the new XslCompiledTransform class. But the problem I am facing is, When I Transform my XML File using this class. My machine gets Hang and after some times it throws An unhandled exception of type System.StackOverflowException occurred in Unknown
Module" Error. (Machine Configuration is intel Core i3, 3 GB RAM) I have XML files with file size of is 1.5 MB.
However, This files works normally with the older version class of XslTransform.
And also in one of the XML File, I have changed one tag Name "Filter-Fields" to "Filter_Fields" and it starts working normally with XslCompiledTransform class.i.e. I have replaced Dash("-") with Hyphen("_") in Tag name and file works normally with Transfrom
Function.
However, In second file of same size, there is no tag or field has name with Dash("-") but still that file throws "Stack Overflow Error".
I am not able to analyze why Transfrom function behaves like this. Or Is there any restrictions for the XSL/XML structure for using this function. or is it because of data in that file or Heirarchy of the Nodes.
Kindly Help.
Thank you,
Hardiksinh Jadeja

View the full article
 
Back
Top