FIX: You receive an Access Violation error when you run a CLR application that calls the XslCompiledTransform.Transform method

Article translations Article translations
Article ID: 961885 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

When you run a common language Runtime (CLR) application that calls the XslCompiledTransform.Transform method in the .NET Framework 3.5 Service Pack 1 (SP1) or in the .NET Framework 2.0 SP2, you receive an Access Violation error that contains stack traces that resemble the following stack traces:
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 problem occurs when the computer memory space is in heavy demand.

CAUSE

This problem occurs because of an off-by-one error in the calculation of address that causes a call instruction that has a bad offset to be generated in just-in-time (JIT) compiling.

RESOLUTION

Hotfix Replacement Information

The hotfix that corresponds to KB961885 has been superseded with the hotfix KB981574, which contains all fixes that were previously included in KB961885. You should use the hotfix KB981574 to fix the issues described in KB961885.  For more information, click the following article number to view the article in the Microsoft Knowledge Base:
981574 The splash screen stays open longer than usual when you try to start Excel on a computer that has the .NET Framework 3.5 SP1 installed

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Properties

Article ID: 961885 - Last Review: August 4, 2010 - Revision: 4.0
APPLIES TO
  • Microsoft .NET Framework 3.5 Service Pack 1
Keywords: 
kbhotfixserver kbexpertiseadvanced kbqfe kbsurveynew KB961885

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com