|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
AccessViolationException at Xsl TransformI'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 Hi Anton,
Could you try to test on some other real machine to see if the AV still occurs. It might be the virtual machine problem in this case. Also, if that still happens on other machines, please let me know the operating system. Kevin Yu Microsoft Online Community Support ============================================================================ ========================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ============================================================================ ========================== (This posting is provided "AS IS", with no warranties, and confers no rights.) Hi Kevin,
this problem also occurs on another real machine. I have tested this on Win 2000 (real machine) and Windows XP Pro SP1 (virtual machine). My development machine runs under Windows XP Pro. Thanks, Anton Kevin Yu [MSFT] schrieb: Show quote > Hi Anton, > > Could you try to test on some other real machine to see if the AV still > occurs. It might be the virtual machine problem in this case. Also, if that > still happens on other machines, please let me know the operating system. > > Kevin Yu > Microsoft Online Community Support > > ============================================================================ > ========================== > When responding to posts, please "Reply to Group" via your newsreader so > that others may learn and benefit from your issue. > ============================================================================ > ========================== > > (This posting is provided "AS IS", with no warranties, and confers no > rights.) > Hi Anton,
Based on my research, this AV exception might have something to do with the current bug: http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?Feedbac kID=97942 If this issue is urgent for you, I suggest you try to contact Microsoft PSS for resolving it. Here is the contact information. http://support.microsoft.com/common/international.aspx?rdpath=gp;en-us;offer prophone Kevin Yu Microsoft Online Community Support ============================================================================ ========================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ============================================================================ ========================== (This posting is provided "AS IS", with no warranties, and confers no rights.) Hi Kevin,
Thanks for your assistance. The reason was a issue with our assembly decompilation protection. Anton Kevin Yu [MSFT] schrieb: Show quote > Hi Anton, > > Based on my research, this AV exception might have something to do with the > current bug: > > http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?Feedbac > kID=97942 > > If this issue is urgent for you, I suggest you try to contact Microsoft PSS > for resolving it. Here is the contact information. > > http://support.microsoft.com/common/international.aspx?rdpath=gp;en-us;offer > prophone > > Kevin Yu > Microsoft Online Community Support > > ============================================================================ > ========================== > When responding to posts, please "Reply to Group" via your newsreader so > that others may learn and benefit from your issue. > ============================================================================ > ========================== > > (This posting is provided "AS IS", with no warranties, and confers no > rights.) > You're welcome. Nice to hear that you have had the problem resolved.
Kevin Yu Microsoft Online Community Support ============================================================================ ========================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ============================================================================ ========================== (This posting is provided "AS IS", with no warranties, and confers no rights.) |
|||||||||||||||||||||||