When failure occurs!

So over the years I’ve had my share of “meltdowns” or failures in BizTalk. I pretty much feel like I’ve seen them all, and I would like to contribute some of the errors and solution to this problems, call it a teaser since there is a lot, this will be the first post in a
Blog Post by: Tord Glad Nordahl

BizTalk 2010 R2 CTP and Preview VM’s in Azure

BizTalk 2010 R2 CTP and Preview VM’s in Azure

I have just been looking at http://blogs.msdn.com/b/biztalk_server_team_blog/archive/2012/08/29/getting-started-with-biztalk-server-2010-r2-ctp-in-windows-azure-virtual-machines.aspx to understand some of the new features. I am not going to wax on about any of the new features here because other people are already doing a good job at this (See  http://blogs.msdn.com/b/biztalk_server_team_blog/archive/2011/12/08/biztalk-server-2010-r2.aspx) but I want to highlight how refreshing it is to preview a new product […]
Blog Post by: mbrimble

Using System Colors in C#

When choosing a color in the properties window in visual studio, there is the possibility to choose from so called System Colors. An example for this is the color ‘Window’, which is the default for a textbox.
Now, I tried to set the BackColor of a Textbox programmatically back to this system color ‘Window’. Turned out not to be as easy as I thought it would be.

I tried things like Color.? … I hoped to find the color in this namespace, or even a System subsection for the systemcolors. Nothing to be found however.
Nor was there any namespace like System.Color to be found.

But how can these system colors be set from C# code than?

Well, one way turned to be using this command:


And, as you’d expect, the KnownColor enumeration contains all of the other user-definable colors.

Or even an easier method to achieve this is


Interview Series: Four Questions With  Shan McArthur

Interview Series: Four Questions With Shan McArthur

Welcome to the 42nd interview in my series of talks with thought leaders in the “connected systems” space. This month, we have Shan McArthur who is the Vice President of Technology for software company Adxstudio, a Microsoft MVP for Dynamics CRM, blogger and Windows Azure enthusiast. You can find him on Twitter as @Shan_McArthur. Q: […]
Blog Post by: Richard Seroter

BizTalk360 version 5.0 BETA with exciting features, available for download

We are exited to announce the immediate availability of BizTalk360 version 5.0 BETA. This is one of the comprehensive release for BizTalk360 with the following set of new capabilities, enhancements, performance improvements and bug fixes.

The development for this release is frozen and we dedicated the whole of September for regression testing, bug fixes and minor usability improvements.

For time being we got bullet list of features that’s coming in 5.0, over the month of September we will put more articles and video covering the topics.

You can download 5.0 beta here http://www.biztalk360.com/Content/beta

New Capabilities:

  • Monitoring Dashboard
  • Backup – Disaster Recovery configuration visualizer
  • Process monitoring for receive locations and send ports (aka silence/inactivity monitoring),
  • HP Operation Manager Integration
  • Support for Message Box Viewer (MBV) 12
  • Run MBV anytime directly from UI
  • Write alerts to Event Viewer (in addition to email, SMS, HP Operation manager alert)
  • Disable individual alerts


  • Clear exception messages during first launch
  • Select ALL applications during user access policy setting, monitoring setting etc.
  • Enhanced UI for monitoring sub-services management
  • Email template cleaned up, so empty sections won’t be displayed.

Performance Improvements

  • Better application loading times, trimmed down unnecessary data when not required
  • Improved Environment/Platform setting load times
  • Improved monitoring service by avoiding unnecessary DB calls and consolidated DB calls

Bug Fixes

  • Issue when same user assigned as super user both by Role and Individual user
  • Identity Mapping issue, when a user is removed from certain role.
  • Governance data filter in multi environment configuration
  • HTTPS end points monitoring when using test certificates
  • Chrome caching issue when new BizTalk360 upgraded to new version
  • Unable to set MBV schedules on Tuesdays
  • Typos and grammatical exceptions messages in couple of places

Earn $10 for each bug you report

We wanted to thank people who are willing to helps and get excited about releases. So, we are offering $10 for each bug you report during the BETA testing period (till 31st September). The general guidelines and procedures to log the bug can be found here.

/Saravana Kumar

Unable to create WCF client proxy from BizTalk generated WCF Service Metadata for a BizTalk WCF Service – Exception was thrown while trying to run a WSDL Import Extension

Unable to create WCF client proxy from BizTalk generated WCF Service Metadata for a BizTalk WCF Service – Exception was thrown while trying to run a WSDL Import Extension

This week I ran into the most bizarrely annoying problem, and I found that there was very little information available to guide me. I had a solution that included a BizTalk WCF-NetMsmq receive location for which I had published metadata as well. However, every time I tried to generate proxy code, either using Visual Studio’s […]
Blog Post by: Johann

Activation context generation failed for …

One of my colleagues
was getting the error.

context generation failed for “”. Dependent Assembly
could not be found.

We thought
installing Visual C++ 2005 Redistributable package on machine should resolve
this problem so we installed the following packages

InfoPath: Returning RichText from a WCF Service to a Form

I recently ran into an interesting one while building some InfoPath forms for SP2010/2013
forms services.

I wanted to return some Rich Text (XHTML) fields back from a WCF
WebService call.

I was at the point as a developer, where I couldn’t even say ’Works on my

The problem was – no matter what I tried, I would always have *plain text* and no
’richness’ of the Rich Text. Didn’t work for me.

So I have:

1) a basic WCF Web service – running on my dev environment.

2) an InfoPath Form that makes the call and displays the results.

The WCF Service:

This is the field that I eventually want to return as RichText to InfoPath.

Here’s the Service Method code (which basically goes into a file and returns back
a list of clauses) – just focus on the CONTENT = GetXHTMLRichText()


InfoPath and Returning a RichTextField
2 things need to happen for this to work.

1. When InfoPath adds the WCF Service to the form, it needs to ’detect’ the field
correctly when it build the underlying schema.

You need (nb – ’Content’ is my field name):
<xs:element minOccurs=”0″ name=”Content” nillable=”true”>
<xs:complexType mixed=’true’>
<xs:any minOccurs=”0″ processContents=”lax” maxOccurs=”unbounded” namespace=”http://www.w3.org/1999/xhtml”></xs:any>


Note the namespace on the ANY element above – this is the winner to tell InfoPath
that this is a richtext field.

2. When returning data via this field (in my case the ’Content’ field),
it needs to be in a certain shape, as in:
<Content xmlns=http://yournamespace>
    <span xmlns="http://www.w3.org/1999/xhtml">Rich text here</div>

Your rich text content needs to be ’wrapped’ for InfoPath to play nicely with it.

This was the purpose of my GetXMLRichText method as


The gotcha:

When I pointed InfoPath at my webservice and added a service reference I was getting
back a SimpleType for the field and not a ComplexType/Rich
Text field.

The WCF Service WSDL was ’almost there’ but not close enough:

The Content field described in a ComplexType which
is almost there, but not quite.

It’s missing the <xs:complexType mixed=’true’><xs:any namespace=’http://www.w3.org/1999/xhtml’ />.
The rest were good.

The fix:

Cutting a long story short, the simplest way forward here was to simply edit the form
components that InfoPath had built and correct the schema. Then reuse the form.

The form looks like this:


From the File->Publish->Export Source Files you can get to
the source and edit the correct schema (XSD) file.

Close the form down in InfoPath (or you may even need to close InfoPath) to edit the

You may need to hunt through a few of them to find the right one. My file was GetKCCTerms12.xsd

Modify, save and close that file.

Right click on manifest.xsf -> Design to launch InfoPath and then
select Save As to work with it as *.XSN form (*.xsn files are just
CABs with all these files inside)

The final result as viewed from an InfoPath form – notice the bolding sent through.



Blog Post by: Mick Badran

Getting started with BizTalk Server 2010 R2 CTP in Windows Azure Virtual Machines

To get started, you need access to a Windows Azure subscription. If you don’t have one already, you can sign up for Windows Azure 90-day free trial here.

Create a Virtual Machine running BizTalk Server 2010 R2 CTP

To use this feature and other new Windows Azure capabilities, login to your account and sign up to use the preview features.

It’s easy to create a virtual machine that is running BizTalk Server 2010 R2 (CTP) when you use the Image Gallery in the Windows Azure Management Portal. This post will walk you through the steps involved to create a virtual machine running BizTalk Server 2010 R2 (CTP) in the cloud.

To learn more about Windows Azure and Virtual Machines, refer to this blog post.

Management Portal Experience

You use the From Gallery feature to create a custom virtual machine in the Management Portal. When you create this virtual machine, you can define the size of the virtual machine, the connected resources, the DNS name, and the network connectivity if needed.

  1. Sign in to the Windows Azure Management Portal.
  2. On the command bar, click New.
  3. Click Virtual Machine, and then click From Gallery.
  4. The VM OS Selection dialog box appears. You can now select an image from the Image Gallery.
  5. Click Platform Images, select the Microsoft BizTalk Server 2010 R2 CTP image, and then click the arrow to continue.

  1. The VM Configuration dialog box appears.
  2. In Virtual Machine Name, type the name that you want to use for the virtual machine. For this virtual machine, type MyBTSVM1.
  3. In New Password, type a password for the Administrator account on the virtual machine. For this virtual machine, type MyPassword1. In Confirm Password, retype the password.
  4. In Size, select the size of the virtual machine. The size that you select depends on the number of cores that are needed for your application. For this virtual machine, select Medium.
  5. Click the arrow to continue.
  6. The VM Mode dialog box appears.
  7. You can connect virtual machines together under a cloud service to provide robust applications, but for this tutorial, you are creating a single virtual machine. So, select Standalone Virtual Machine.
  8. A virtual machine that you create is contained in a cloud service. In DNS Name, type a name for the cloud service that is created for the virtual machine. The entry can contain from 3-24 lowercase letters and numbers. This value becomes part of the URI that is used to contact the cloud service that the virtual machine belongs to. For this virtual machine, type MyService1.
  9. Select the storage account for the VHD file. For this tutorial, select Use Automatically Generated Storage Account.
  10. In Region/Affinity Group/Virtual Network, select West US as the location of the virtual machine.
  11. Click the arrow to continue.
  12. The VM Options dialog box appears.
  13. The options on this page apply only if you are connecting this virtual machine to other virtual machines or if you are adding the virtual machine to a virtual network. For this virtual machine, you are not creating an availability set or connecting to a virtual network. Click the check mark to create the virtual machine.
  14. Windows Azure creates the virtual machine and configures the operating system settings. After Windows Azure creates the virtual machine, it is listed as Running in the Windows Azure Management Portal


How to log on to the virtual machine after you create it

You can log on to the virtual machine that you created to manage both its settings and the applications that are running on it.

1.      Sign in to the Windows Azure Management Portal.

2.      Click Virtual Machines, and then select the MyBTSVM1 virtual machine.

3.      On the command bar, click Connect.

4.      Click Open to use the remote desktop protocol file that was automatically created for the virtual machine.

5.      Click Connect.

6.      In the password box, type MyPassword1, and then click OK.

7.      Click Yes to verify the identity of the virtual machine.

You can now work with the virtual machine just like you would a server in your office.

Configure BizTalk Group

1.        Log into the machine using the steps mentioned above

2.      On first logon, a few start up tasks will be executed. Wait until the SQL Server – Getting Started link is created on desktop.

3.      The machine already has all the pre-requisites for running BizTalk Server from SQL Server to BizTalk Server installation to IIS configuration, etc.

4.      Launch BizTalk Configuration Wizard

5.      Use the basic or custom configuration and apply configuration Settings

6.      Once configured, you have a fully configured and running BizTalk Server environment in Windows Azure.


Next steps

The best way to get started with the offering is just to do some experimenting, developing and testing BizTalk Server 2010 R2 CTP on a Virtual Machine. This means you can deploy a Virtual Machine, perhaps as part of your new free trial and install BizTalk Server 2010 R2 CTP.

If you have any issues, problems, or questions, you can always find us on the help forums.


Blog Post by: BizTalk Blog