Geeks With Blogs
Buhay Programmer Dont byte more than you can chew

Every BizTalk developer knows that assemblies used by BizTalk must reside in the Global Assembly Cache and hence must be strong-named.  As such, if you are using an assembly that reads a config section then in the BTSNTSvc.exe.config, you must specify the specific type of assembly in the GAC that will be used to read that section.

Taking SubSonic for example. the config section should read like:

   <section name="SubSonicService" type="SubSonic.SubSonicSection, SubSonic, Version=, Culture=neutral, PublicKeyToken=3db15eb857a3cee5" allowDefinition="MachineToApplication" restartOnExternalChanges="true" requirePermission="false"/>
And the SubSonicService section should be:
<SubSonicService defaultProvider="TestProvider">
    <add name="TestProvider" type="SubSonic.SqlDataProvider, SubSonic, Version=, Culture=neutral, PublicKeyToken=3db15eb857a3cee5"     
The Version, Culture and PublicKeyToken must be specified.  If not, BizTalk won’t be able to find the assembly and will report an error saying something like “it could not load assembly or file”.
To find out the version and PublicKeyToken of any assembly in the gac, simply go to C:\windows\assembly


You can download SubSonic here. Generate your own snk file, compile it, then off you go!

Posted on Thursday, June 14, 2007 6:48 AM | Back to top

Comments on this post: Configuring SubSonic for BizTalk

# re: Configuring SubSonic for BizTalk
Requesting Gravatar...
That's more like it! (sorry ka ... kokomentan ko lahat ng post mo dahil bisi ako!)
Left by Ako Syempre (Ditha) on Sep 10, 2007 12:05 PM

Your comment:
 (will show your gravatar)

Copyright © Erik Araojo | Powered by: