BizTalk Server Tutorial

BizTalk Server Concepts and Common Errors

Debugging Orchestrations in BizTalk 2009 using C# .cs file

An Orchestration *.odx file contains an XML file and code written in a language specific to BizTalk called X#.

You can easily find these, when you right click an orchestration and open it with XML Editor or Notepad.

XML Representation of the Orchestration is used by the Graphical Designer to show the shapes on the screen.

X# code is in turn converted to C# at runtime using XSharp.exe file and this C# assembly will be executed.

This C# file can be found inside <ProjectFolder>\obj\Debug\BizTalk\Xlang\File0.cs once the project is built.

Unlike in earlier versions of BizTalk, only one .cs file will be created irrespective of number of orchestration you have in your project.

This File0.cs file has different sealed internal classes for each of the orchestration in your project.

To debug your orchestration or code written in an expression shape, open this File0.cs and keep a break point. Attach BizTalk Server to the BtsNTSvc Process.

Now you will be able to debug your orchestration using C# Code.

Hope it helps.

–       Shiv


February 21, 2011 - Posted by | Orchestrations | , ,


  1. amazing…… great post.
    and i have one doubt, does visual studio has 2009 version?

    Comment by Ravindar Thati | June 11, 2011 | Reply

    • Thanks Ravindar.. It was my mistake.. What I meant was BizTalk 2009… The way we debug is different in 2009 and 2006..

      Comment by Shiv | June 11, 2011 | Reply

  2. yeah nice

    Comment by kyle | March 1, 2011 | Reply

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

%d bloggers like this: