04-18-06 05:46 AM
Is this BizTalk 2004? You might be running into the "classic" issue where
your assembly is loaded from a specific location, but a chunk of code is
attempting to do XmlSerializer work on a class that is also deployed in the
GAC. You wind up with type identity issues, and you see invalid cast
exceptions at the point you deserialize.
I don't know of a good way around this, to be honest. Perhaps someone else
can comment, or perhaps my speculation is incorrect!
Scott Colestock
www.traceofthought.net
"TO_BizTalker" <MeTechee@gmail.com> wrote in message
news:1144902426.457570.173430@z34g2000cwc.googlegroups.com...
> Hi there:
>
> I have developed a pipeline component that promotes some properties in
> the message context based on information read from the database. The
> idea is that each incoming message is taged (by setting the promoted
> context property value) with routing/processing information retrieved
> from database based on the message namespace. These messages are then
> routed to appropriate orchestrations subscribing to the messages based
> on the routing/processing information. This part works very fine. I
> developed a helper library to implement the plumbing and the pipeline
> component just calls methods on the types.
>
> To enhance the performance, I introduced Microsoft Practices and
> Patterns Enterprise Library (EL) Caching application block. The
> routing/processing information once retrieved from the database is to
> be cached to enhance the performance. But the trouble is that I get an
> error while trying to create/get the cache manager. The error message
> that I get is very vague. It says something like "failed to create
> CacheManager.I have drilled down and found out that it fails on
> creating the xml serializer instance. (I think something to do with
> creating temporary JITed pCode).
>
> If I call the same library from other windows application, it works
> very fine. I am confused as what's going wrong here.
>
> What is your idea of introducing caching at AppDomain level that you
> mentioned in your post.
>
> I will appreicate any help.
>
> Thank you,
>
> Inam Haq
>
> <Inam dot Haq at ravianconsulting dot com>
>
[ Post a follow-up to this message ]
|