Wednesday, August 27, 2008

BizTalk 2004 to 2006 Upgrade XSLT issue

I have been working on a BizTalk 2004 to 2006 upgrade and encountered an interesting issue when testing. It was an XLANG error with the relevant part of the error message log being:

Unable to cast object of type 'MS.Internal.Xml.Cache.XPathDocumentNavigator' to type 'System.Xml.IHasXmlNode'

The reason for this is that in one of the XSLT maps there was some custom c# code that made a cast. The cast involved the XPathDocumentNavigator class from the System.Xml.XPath namespace. The XSLT engine loaded the version in MS.Internal.Xml.Cache first.

To fix this issue I just made sure the references to XPathDocumentNavigator were fully qualified.

The lesson learned was that it always pays to fully qualify your references to classes in embedded .net code in XSLT.


Anonymous said...

My friend and I were recently talking about how technology has become so integrated in our day to day lives. Reading this post makes me think back to that discussion we had, and just how inseparable from electronics we have all become.

I don't mean this in a bad way, of course! Societal concerns aside... I just hope that as the price of memory falls, the possibility of uploading our memories onto a digital medium becomes a true reality. It's a fantasy that I daydream about all the time.

(Submitted from QDos for R4i Nintendo DS.)

Anonymous said...

hi there, my name is Eva.

found this website and read some great discussion and feedback so decided to join

i am happy to help others and offer advice where possible :)

Anonymous said...

It's great that you are getting ideas from this post as well as from our discussion made at this time.

Feel free to surf to my weblog; Elevate GF facts

Anonymous said...

Have you ever thought about including a little bit more than just your articles?

I mean, what you say is valuable and everything.
Nevertheless imagine if you added some great images or
videos to give your posts more, "pop"! Your content is excellent but
with images and video clips, this website could definitely be
one of the very best in its field. Great blog!

profit master

Anonymous said...

I enjoy what you guys tend to be up too. This kind of clever work and
coverage! Keep up the great works guys I've included you guys to my own blogroll.

My web site; acai ultra lean

Anonymous said...

As the admin of this web site is working, no hesitation very soon it will be famous,
due to its feature contents.

my web blog :: Ultra Slim Patch Weight Loss

Anonymous said...

Nice respond in return of this matter with firm arguments and explaining all concerning that.

my web page ... Cambogia trim review

Anonymous said...

I will immediately seize your rss feed as I can not in finding your e-mail
subscription link or newsletter service. Do
you've any? Kindly let me know so that I may just subscribe. Thanks.

Here is my page: Androsolve Reviews

Anonymous said...

whoah this weblog is wonderful i really like studying your posts.

Keep up the great work! You understand, many persons are
searching around for this info, you can aid them greatly.

my web blog ... make real money online