BizTalk Orchestration – Orchestration debugging inside Visual Studio – Part II (BizTalk 2009)

Posted: September 11, 2009 in BizTalk
Tags: , ,

In my previous post (“BizTalk Orchestration – Orchestration debugging inside Visual Studio”) I explain how to debug BizTalk 2004, 2006 or R2 orchestration in Visual Studio.

So how can I do this in BizTalk 2009 version?

When compiling a BizTalk Server 2009 project in Visual Studio classes (.cs) files are generated for the BizTalk artifacts. Those files are not part of the project and have the extension ‘.cs’, e.g.: .btp.cs, .xsd.cs, .btm.cs

I was expecting also a .odx.cs file, but that is not the case. The CS file for the Orchestration is placed in “objDebugBizTalkXLang” and is called File0.cs. If you open this file you can attach this file to your BizTalk process (where the Orchestration is hosted in) and of course place a breakpoint.

Another difference is that if we have more than one orchestration, when we compile the solution, Visual Studio DON’T generate two CS files (File0.cs and File1.cs), he only generate one, and the two (or more) orchestrations code are inside the file: File0.cs

Inside this file he creates different class according to the orchestration Typename property, sample:

  • sealed internal class BizTalk_Orchestration1 : Microsoft.BizTalk.XLANGs.BTXEngine.BTXService …
  • sealed internal class BizTalk_Orchestration2 : Microsoft.BizTalk.XLANGs.BTXEngine.BTXService…


Tags: BizTalk | Orchestration | Debug | Visual Studio

  1. Vishal says:

    I am new to Biztalk.
    My question is :

    Can you please provide me the steps to debug orchestraion in 2010 ?
    Is it possible to check the data present in each shape used in the orchestraions at run time ? (Like, In dot net we have quick watch which allows us to check values while debugging)

    Any suggestions and links would be of great help!!! Thanks .

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s