Dynamic Loading Maps BizTalk 2006 R2 upgrade to BizTalk 2013

We are in the process of upgrading BizTalk to 2013 R2 from BizTalk 2006 R2.

In an orchestration we are dynamic using map type classes.

It works fine in 2006 R2, 2010 but not 2013 R2.

When I run the below code in VS 2008 it retrieves the class types from the assemblies.

In VS 2013 it does not.  Why?

 

//CCIJIS_WarrantClearRequest_X_MCIJIS_CLWR


           

string typeName = "x";

           

string className = "x";

           

Type mapType = Type.GetType("MCIJIS_RCLW_X_CCIJIS_WarrantClearResponse, CCIJIS.State.Transforms, Version=1.2.0.0, Culture=neutral, PublicKeyToken=d18be0be6c153b84");

            mapType =

Type.GetType("CCIJIS.State.Transforms.MCIJIS_RCLW_X_CCIJIS_WarrantClearResponse");

           

if (mapType == null)

               

foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies())

                {

                   

if (a.FullName.Contains("CCIJIS.State.Transforms"))

                    {

                        typeName = a.FullName;

                        mapType = a.GetType(a.FullName);

                       

foreach (Type type in a.GetTypes())

                        {

                            className = type.FullName;

                        }

                    }

                }

February 26th, 2015 9:26pm

Hi James,

Try debugging your code by attaching Visual Studio to the BTSNTSVC.exe process and see where exactly your code is failing.

For debugging your orchestration refer: BizTalk Orchestration Orchestration debugging inside Visual Studio

Checkpoint: Ensure you have using correct fully-qualified map name.

Rachit

Free Windows Admin Tool Kit Click here and download it now
February 28th, 2015 6:39am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics