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.