Search code examples
xmlbiztalkpipelinebiztalk-2010

BizTalk Custom Pipeline Component: XmlException crossed a native/managed boundary


I'm not entirely sure if this exception is anything to do with the custom pipeline component I have created or not. I have loaded the code in VS2010 and attached to the BTSNTSVC.exe but before I even hit the first break point I get this error:

enter image description here

There is no disassembly to view and the code (for my component) works fine in a console application with the same input file.

This pipeline component is on a receive port. any ideas? Thanks


Solution

  • Thanks for your answer Jay but as so often happens I walk away from the problem & realise the simple answer to the problem. Unfortunately I cannot test it out until I get back to work tomorrow but the scenario is one complex xml string in seven xml documents out BUT they're of different types and I set the receive shape to take messages of the 7 out. I think what I need to do is set the message type to XmlDocument instead and then cast afterwards in the orchestration.