A
Anton
Hi,
I'm getting the following exception when doing a XSL Transform:
System.AccessViolationException: Attempted to read or write protected
memory. This is often an indication that other memory is corrupt.
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(XmlReader contextDocument,
XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)
at System.Xml.Xsl.XslCompiledTransform.Transform(String inputUri,
XmlWriter results)
This is the code (the last line raises the exception):
MemoryStream ms = new MemoryStream();
XmlWriter xw = XmlWriter.Create(ms);
XslCompiledTransform xslt = XslCompiledTransform();
xslt.Load(sFileXslt);
xslt.Transform(sImportFile, xw);
On my development machine this code runs just fine. When testing in
various virtual machines, there is always an exception.
At first I thought the .NET 2.0 Framework installation could be damaged,
but reinstalling didn't help.
What could be the reason for this?
Thanks,
Anton
I'm getting the following exception when doing a XSL Transform:
System.AccessViolationException: Attempted to read or write protected
memory. This is often an indication that other memory is corrupt.
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(XmlReader contextDocument,
XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)
at System.Xml.Xsl.XslCompiledTransform.Transform(String inputUri,
XmlWriter results)
This is the code (the last line raises the exception):
MemoryStream ms = new MemoryStream();
XmlWriter xw = XmlWriter.Create(ms);
XslCompiledTransform xslt = XslCompiledTransform();
xslt.Load(sFileXslt);
xslt.Transform(sImportFile, xw);
On my development machine this code runs just fine. When testing in
various virtual machines, there is always an exception.
At first I thought the .NET 2.0 Framework installation could be damaged,
but reinstalling didn't help.
What could be the reason for this?
Thanks,
Anton