Strange COM exception in BizTalk

A while ago I had serious problems with BizTalk. For some obscure reason the BizTalk engine would throw some XLANG errors and stop processing all messages. A restart of the hosts would fix the problem for a while but after some time the same problem would occur and BizTalk would effectively stop processing. (orchestrations would be marked as  active but nothing happens)

The funny thing is, these orchestrations were deployed on the BizTalk Server a long time ago and they never gave any problem. All of a sudden these problems started to appear. So I think the blame is probably in some kb^*&^(& hotfix somewhere.

I had a case with MS-Support (and for sure they had never seen this error) and even google will not tell you that much about it.
However, until now I have had two people contact me with exactly the same problem.
So I know I was not alone ! Since googling on this gives me very poor results I will put some details about what happened in this post.

Unable to cast COM object of type 'System.__ComObject'   followed by No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

When this happens you will find a lot of references to the guid 6C90EC05-4918-11D3-A242-00C04F60A533 (see bottom)

I have mentioned both MSDN threads that have this problem. The things we have in common are:

  • Usage of the classic SQL adapter 
  • Typically, this problem occurs when the orchestration engine reaches a Call Orchestration shape or a Start Orchestration shape.

To isolate this problem we added a specific SQL Host that does all the work for the SQL Adapter. We hoped the next time we saw the error, we could see if it was caused by orchestrations or really by the SQL adapter. Cause then onlu the SQL Host would have a problem. We had everything set up to debug the BizTalk environment with the tools provided by MS and we were waiting for the event to happen. But unfortunately after we added a dedicated SQL host the problem never re-occurred. So the supportcase is closed now (without a definitive answer).

If you have had a similar experience please give a response to this post.

Published Mon, Sep 27 2010 12:11 PM by Patrick Wellink

Comments

# re: Strange COM exception in BizTalk

Monday, October 04, 2010 11:12 PM by Richard Hallgren

Sorry to see that you still have this problem! Would it be much work to change to solution to use the sql WCF adapter instead?

# re: Strange COM exception in BizTalk

Wednesday, October 06, 2010 1:40 PM by Patrick Wellink

Yes we are working with the WCF SQL Adapter from now on. But.....

Some old collegue of mine isolated the SQL Adapter in a seperate host (only Sending & receiving). And this was not the solution. He still had the problem.

So the other host instances were having this problem as well. So it's not solely SQL adapter that causes this.

I suspect that when a great number of threads all try to access the same com component or MSDTC (or whatever is used somewhere in the internals of biztalk), things start to go wrong....

# re: Strange COM exception in BizTalk

Tuesday, November 09, 2010 8:08 AM by Sean

We encoutered the same issue, although we were not using the SQL adapter of BAM. The error occurred when we called out to a normal webservice.

The error message was identical to the one you described even with the same GUID.

We started experiencing the issue straight after we had deployed some Microsoft patches. Uninstalling the patches seesm to have resolved it though.

# re: Strange COM exception in BizTalk

Wednesday, November 10, 2010 11:08 AM by Patrick Wellink

Sean do you remeber what patches, cause i have the same feeling it was caused by some patches.... Any info would be helpfull.

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Please add 4 and 5 and type the answer here: