FIX: "The InnerText property is write only" error message when you use System.Xml.XmlDocument in BizTalk Server 2010 or in BizTalk Server 2013

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

On This Page

Symptoms

Consider the following scenario:
  • You create a new Microsoft BizTalk Server 2010 or in Microsoft BizTalk Server 2013 project in Microsoft Visual Studio 2010.
  • You create one orchestration to the project.
  • You create the following two variables in the orchestration:
    • var1: System.Xml.XmlDocument
    • var2: System.String
  • You add one expression shape to the orchestration.
  • You add the following code to the expression shape:
    var1 = new System.Xml.XmlDocument();var2 = var1.InnerText;
In this scenario, you receive the following error message:
'var1.InnerText': .NET property is write-only because it does not have a get accessor.

Resolution

Cumulative update information

For BizTalk Server 2013

The hotfix that resolves this issue is included in cumulative update package 2 for BizTalk Server 2013.

For more information about how to obtain the cumulative update package, click the following article number to view the article in the Microsoft Knowledge Base:
2892599 Cumulative update package 2 for BizTalk Server 2013

For BizTalk Server 2010

The hotfix that resolves this issue is included in cumulative update package for BizTalk Server 2010.

For more information about how to obtain the cumulative update package, click the following article number to view the article in the Microsoft Knowledge Base:
2855367 Cumulative update package 6 for BizTalk Server 2010

Status

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

Workaround

To work around the issue, redefine the XmlDocument as XmlNode.

Properties

Article ID: 2835689 - Last Review: October 31, 2013 - Revision: 2.0
Applies to
  • Microsoft BizTalk Server Branch 2010
  • Microsoft BizTalk Server Developer 2010
  • Microsoft BizTalk Server Enterprise 2010
  • Microsoft BizTalk Server Standard 2010
  • Microsoft BizTalk Server 2013 Branch
  • Microsoft BizTalk Server 2013 Developer
  • Microsoft BizTalk Server 2013 Enterprise
  • Microsoft BizTalk Server 2013 Standard
Keywords: 
kbqfe kbfix kbsurveynew kbexpertiseadvanced KB2835689

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