Microsoft Knowledge Base Email Alertz

FIX: The XslCompiledTransform.Transform method does not have an overload method that accepts both the XPathNavigator and XmlResolver objects as arguments in .NET Framework 2.0

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 968556 - Last Review: August 4, 2010 - Revision: 3.0

FIX: The XslCompiledTransform.Transform method does not have an overload method that accepts both the XPathNavigator and XmlResolver objects as arguments in .NET Framework 2.0

SYMPTOMS

In Microsoft .NET Framework 2.0, you migrate a code from the XslCompiledTransform class to the XslTransform class in the namespace of System.Xml.Xsl. The XslTransform.Transform method has an overload method that accepts both the XPathNavigator object and the XmlResolver object as arguments. For example, the XslTransform.Transform method has the following overload method:
public void Transform(XPathNavigator, 
XsltArgumentList, 
XmlWriter, 
XmlResolver
)
However, the XslCompiledTransform.Transform method does not have the same overload method. The following is an overload method of the XslCompiledTransform.Transform method which accepts the XmlResolver object:
public void Transform(XmlReader, 
XsltArgumentList, 
XmlWriter, 
XmlResolver
)
This overload method uses the document that is specified by the XmlReader object as input.

If you try to produce an XmlReader object from an XPathNavigator object, you have to call the ReadSubtree method. This is not efficient. Additionally, it may be very time-consuming if you handle a large code base.

RESOLUTION

Hotfix Replacement Information

The hotfix that corresponds to KB968556 has been superseded with the hotfix KB976814, which contains all fixes that were previously included in KB968556. You should use the hotfix KB976814 to fix the issues described in KB968556. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
976814   (http://kbalertz.com/Feedback.aspx?kbNumber=976814 / ) FIX: A System.InvalidOperationException exception occurs when you use a WCF client proxy that is generated by the ServiceModel Metadata Utility tool from the service metadata that is in the .NET Framework 3.5
 

STATUS

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

MORE INFORMATION

After you apply this hotfix, the following overload method is accepted in the XslCompiledTransform.Transform method:
public void Transform (XPathNavigable,
XsltArgumentList,
XmlWriter,
XmlResolver
)
For more information about the XslTransform.Transform method, visit the following Microsoft Web site:
http://msdn.microsoft.com/en-us/library/system.xml.xsl.xsltransform.transform.aspx (http://msdn.microsoft.com/en-us/library/system.xml.xsl.xsltransform.transform.aspx)
For more information about the XslCompiledTransform.Transform method, visit the following Microsoft Web site:
http://msdn.microsoft.com/en-us/library/system.xml.xsl.xslcompiledtransform.transform.aspx (http://msdn.microsoft.com/en-us/library/system.xml.xsl.xslcompiledtransform.transform.aspx)
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684  (http://kbalertz.com/Feedback.aspx?kbNumber=824684/ ) Description of the standard terminology that is used to describe Microsoft software updates

APPLIES TO
  • Microsoft .NET Framework 2.0
Keywords: 
kbsurveynew kbfix kbqfe kbexpertiseadvanced kbHotfixServer KB968556
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate