Scripting Using External Assemblies

Scripting with external assemblies is the preferred way to use scripting in Microsoft BizTalk Server. External assemblies provide several advantages:

  • Easy code sharing

  • Simpler maintenance

  • Easier debugging

Note

Test Map fails if the Scripting functoid uses an external assembly which is not registered in the GAC. It works if the external assembly is in the same bin folder as the current project's assembly (placed after build).

Re-using the script only requires setting the Script property of the Scripting functoid. Because the script is stored outside of the map, you can modify the script without changing the map. And you can use the full array of Visual Studio debugging tools to ensure your script runs correctly.

Warning

The code in the external assembly must be thread-safe. Under stress conditions, multiple instances of a map may be running concurrently.

For a sample function housed in an external assembly, see XML Tools (BizTalk Server Samples Folder).

See Also

Scripting Functoid
Scripting Using Inline C#, JScript .NET, and Visual Basic .NET
Scripting Using Inline XSLT and XSLT Call Templates
How to Add Scripting Functoids to a Map
How to Configure the Scripting Functoid