Cast error when using Word as output provider

Nov 17, 2008 at 2:26 PM


When I use chm as output provider everything works like a charm on my Windows Server 2003.
But I want to use Word as output provider, and that is where my problems begin and I get an error saying:

"Unable to cast object of type 'Microsoft.Services.Tools.BizTalkOM.NameIdPair' to type 'Microsoft.Services.Tools.BizTalkOM.SendPort'."

Has anyone else seen this, and more importantly: does anyone have a solution?

Oct 6, 2009 at 2:55 PM


Even I am facing the same problem with output as Word. I am getting the same error "Unable to cast object of type 'Microsoft.Services.Tools.BizTalkOM.NameIdPair' to type 'Microsoft.Services.Tools.BizTalkOM.SendPort'." when I select my Orchestrations project, otherwise for my Pipelines, Schemas and Maps it is working fine.

Can someone from BizTalk Documenter team look into this.

Dec 9, 2009 at 9:00 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Dec 9, 2009 at 9:01 AM


This seems to be a common issue for a number of people. I think its been fixed but will review the code for v3.2.1



Feb 2, 2010 at 11:16 AM


This has now been fixed in v3.3


Feb 16, 2010 at 7:41 PM

Hi Benjamin,

                  I´ve recently installed your last BizTalk documenter v3.3 and still I am getting the same error "Unable to cast object of type 'Microsoft.Services.Tools.BizTalkOM.NameIdPair' to type 'Microsoft.Services.Tools.BizTalkOM.SendPort'."

Also I´ve been trying to get the Doc report doing specific box-checks from my BizTalk application, once i got the Doc report and try to open use the MS word a semicolon error appears:

Semicolon expected
Location: Line: 1, Column: 29472

Web error Code:

- <w:p>
- <w:r>
  <w:t />
The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


A semi colon character was expected. Error processing resource 'file:///C:/TEST/documenter/BizTalk Documentation - CTCDS600...

<v:shape id='_x0000_i1025' type='16f83e0d-1d27-42c6-8745-40940c2b5768' style='v-align: center;width:500pt;height:78pt'>...
- <w:tbl>
- <w:tblPr>
  <w:tblW w:w="0" w:type="auto" />
  <w:tblStyle w:val="tab1" />
- <w:tr>

Feb 18, 2010 at 12:54 PM

Hi Alberto,

These are strange errors. I will try to repro the send port issue.

For the second one, the Word output, I'm not sure what the problem could be. maybe its some service pack issue. We write the Word XML directly and when you use the "Show output on completion" checkbox, Winword is automatically launched so we dont have any control over the rendering actually. I will try and repro on another box (separate from the one i use to develop the app on) and see if i can get the same error.