BizTalk Server Tutorial

BizTalk Server Concepts and Common Errors

External assembly not updated automatically with Scripting Functoids.

While using script Functoids to call a method in an external assembly, care should be taken with the Assembly version and PublicKeyToken.

 These values will be hardcoded in the map for that particular script functoid.

 For eg: as given below.

 <Script Language=”ExternalAssembly” Assembly=”MyAssembly, Version=1.1.0.6, Culture=neutral, PublicKeyToken=352635678e269c8da” Function=”Insert” AssemblyPath=”..\..\bin\Debug\MyAssembly.dll” />

 If the source dll version or PublicKeyToken is modified, script functoid canonot automatically refere to the new version of the dll and it still refers to the old version of the dll.

 In this situation either of the below approaches should be followed to avoid Transformation Failure. 

  1. Make sure that the old version of the dll is available in the GAC.
  2. Modify the script functoid to refer to a new version of the dll.

 This can be done in 2 ways.

i)   Modify each script funtoid to point to a new assembly.

ii)  If you have many scripting Functoid using the same assembly, then Right Click on the Map and open with XML Editor. Search for the assembly and update the Version.

 Post your comments if any one has an alternate solution.


Web Counters

November 1, 2010 - Posted by | Maps | ,

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: