Visual 2010 BizTalk project woes


I sometimes find myself in a situation where I need to make direct modifications to the XML code of an orchestration, map or pipeline. In Visual Studio you can do this easily by opening the file with the non default editor (right click orchestration file, ‘Open With…’ and ‘XML (Text) Editor’).

I encounter very strange behavior for the different file types (orchestrations, maps, pipelines) after I opened them in the Visual Studio 2010 XML editor. For schema files the behavior is as expected. For the other file types it looks like the default editor binding is missing after opening the file in the XML editor.

Orchestrations:

Steps to reproduce:
- right click orchestration (.odx) file in solution explorer
– choose ‘Open With…’
– choose ‘XML (Text) Editor’
– close the orchestration (save is not necessary)
– open the orchestration with the default editor (double click)

Results:
The orchestration opens but displays a very strange screen. It looks like a mix between the orchestration and the code behind:

image

Besides this there are the context menu for the specific orchestration has changed. Two options are added:

image

Maps:

Steps to reproduce:
- right click map (.btm) file in solution explorer
– choose ‘Open With…’
– choose ‘XML (Text) Editor’
– close the map (save is not necessary)
– open the map with the default editor (double click)

Results:
In this case the map opens with the correct mapper editor but there are also two extra options added to the context menu as is the case with orchestrations.

Pipelines:

Steps to reproduce:
- right click pipeline (.btp) file in solution explorer
– choose ‘Open With…’
– choose ‘XML (Text) Editor’
– close the pipeline (save is not necessary)
– open the pipeline with the default editor (double click)

Results:
For pipelines Visual Studio opens the XML representation when double clicking. It seems as if the default editor has changed.

image

This is very annoying. Is it just me? Do you have this too at your development box?

Workaround:
The workarounds I found are:
– Choose ‘Open with…’ and pick the default editor from the list.
– Open the BizTalk project (.btproj) with notepad and remove the ‘<subType>’  xml nodes for every file. After open the project again in Visual Studio it is fixed (until you open the file with the XML editor again).

I’m using BizTalk 2010 RTM (developer edition), Visual Studio 2010 Ultimate. Do you have this too?

I raised this issue on the Microsoft connect site.

About these ads

6 Responses to Visual 2010 BizTalk project woes

  1. charles says:

    Randal,

    It seems to be universal. Just followed a ESB course in Stockholm. The instructer there mentioned it too and I indeed had this problem too when trying.

  2. Robbish says:

    Hello Randal,
    I have the same trouble with one orchestration.
    The others are fine.
    Workaround 1 “Open with…” works fine, but I prefer Workaround 2 (i guess).
    I do not know what you mean with “remove the ‘’ xml nodes for every file”, because I see no nodes ”

    • Randal van Splunteren says:

      Hi Rob,

      Sorry for the big delay in my reply.

      The workaround is:

      Open the btproj file of the project containing the orchestration with a text editor
      search for the orchestration reference. Like this:

      BizTalk_Orchestration1
      BizTalk_Server_Project2
      Designer

      Remove the ‘SubType’ node

      BizTalk_Orchestration1
      BizTalk_Server_Project2

      Save and you’re done!

  3. Just a quick note here. Whenever I feel the need to manually edit a .btm, .odx or other BizTalk specific files (in most cases this is because I’ve changed the namespace/location of a schema and want to quietly fix it in all referencing artifacts) my editor of choice is Notepad++.

  4. Matt Mitchell says:

    Cheers – this resolved the issue for me (only occurred on the one orchestration too).

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: