|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
XlsTransformation generates InvalidProgramExceptionstrXmlData string is about 60kB. Smaller one run fine... Where is the transformation limit? It is problem in NET20 - transformation ran without errpr before upgrading the code. xXslDoc.LoadXml(strXmlData); xDoc = MakeRootDoc("dummy"); XsltSettings xSet = new XsltSettings(true, true); xslDoc.Load(xXslDoc, xSet, null); XmlDocument xmlResult = new XmlDocument(); using (XmlWriter writer = xmlResult.CreateNavigator().AppendChild()) {xslDoc.Transform(xDoc, xArgs, writer);} the error is following----> System.InvalidProgramException: Common Language Runtime detected an invalid program. at <xsl:template match="/">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) at Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) at Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) at System.Xml.Xsl.ExecuteDelegate.Invoke(XmlQueryRuntime runtime) at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results) at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter) at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results) at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, XmlWriter results) Sorry I missed one zerro - the string is about 600kB. Petr
Show quote "pvotava" wrote: > I get following errors from my webapplication after running the code when > strXmlData string is about 60kB. Smaller one run fine... Where is the > transformation limit? It is problem in NET20 - transformation ran without > errpr before upgrading the code. > > xXslDoc.LoadXml(strXmlData); > xDoc = MakeRootDoc("dummy"); > XsltSettings xSet = new XsltSettings(true, true); > xslDoc.Load(xXslDoc, xSet, null); > > XmlDocument xmlResult = new XmlDocument(); > using (XmlWriter writer = xmlResult.CreateNavigator().AppendChild()) > {xslDoc.Transform(xDoc, xArgs, writer);} > > the error is following----> > > System.InvalidProgramException: Common Language Runtime detected an invalid > program. > at <xsl:template match="/">(XmlQueryRuntime > {urn:schemas-microsoft-com:xslt-debug}runtime) > at Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) > at Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) > at System.Xml.Xsl.ExecuteDelegate.Invoke(XmlQueryRuntime runtime) > at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, > XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter > results) > at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, > XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, > Boolean closeWriter) > at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, > XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results) > at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, > XsltArgumentList arguments, XmlWriter results) Is there anybody with the similar problem?
Show quote "pvotava" wrote: > I get following errors from my webapplication after running the code when > strXmlData string is about 60kB. Smaller one run fine... Where is the > transformation limit? It is problem in NET20 - transformation ran without > errpr before upgrading the code. > > xXslDoc.LoadXml(strXmlData); > xDoc = MakeRootDoc("dummy"); > XsltSettings xSet = new XsltSettings(true, true); > xslDoc.Load(xXslDoc, xSet, null); > > XmlDocument xmlResult = new XmlDocument(); > using (XmlWriter writer = xmlResult.CreateNavigator().AppendChild()) > {xslDoc.Transform(xDoc, xArgs, writer);} > > the error is following----> > > System.InvalidProgramException: Common Language Runtime detected an invalid > program. > at <xsl:template match="/">(XmlQueryRuntime > {urn:schemas-microsoft-com:xslt-debug}runtime) > at Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) > at Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) > at System.Xml.Xsl.ExecuteDelegate.Invoke(XmlQueryRuntime runtime) > at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, > XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter > results) > at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, > XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, > Boolean closeWriter) > at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, > XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results) > at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, > XsltArgumentList arguments, XmlWriter results) |
|||||||||||||||||||||||