Sometimes some information needs to be stored in the configuration file for the convenience of BizTalk maintenance. BizTalk provides
Files \ Microsoft Biztalk Server 2004 (2006) \ BTSNTSvc.exe. config. However, it is difficult to maintain a large number of projects. In the following example, you can configure btsntsvc.exe. config to assign a configuration file to a separate project.
1. configuration of BTSNTSvc.exe. config
<ConfigSections>
<Section name = "xlangs"
Type = "Microsoft. XLANGs. BizTalk. CrossProcess. XmlSerializationConfigurationSectionHand
Ler, Microsoft. XLANGs. BizTalk. CrossProcess "/>
</ConfigSections>
<Xlangs>
<Configuration>
<AppDomains AssembliesPerDomain = "10">
<AppDomainSpecs>
<AppDomainSpec Name = "MyAppDomain" secondsidlebeforeshudown = "-1"
Secondsemptybeforeshudown = "12000">
<BaseSetup>
<ConfigurationFile> c: \ temp \ app. config </ConfigurationFile>
</BaseSetup>
</AppDomainSpec>
</AppDomainSpecs>
<ExactAssignmentRules>
<ExactAssignmentRule AssemblyName = "myAssemblyName, Version = 1.0.0.0
Culture = neutral PublicKeyToken = 5a4c37737373 "AppDomainName =" MyAppDomain "/>
</ExactAssignmentRules>
</AppDomains>
</Configuration>
</Xlangs>
C: \ temp \ app. config configuration information
<Configuration>
<Deleetask>
<Add key = "mykey" value = "myvalue"/>
</AppSettings>
</Configuration>
After the preceding configuration, you may obtain the value in the Orchestraction expression or class library in the following way:
System. Configuration. ConfigurationSettings. receivettings ("mykey ")
Restart BizTalk Host after you modify the information of BTSNTSvc.exe. config to ensure that the changed information can be applied.
I hope this file will be helpful to you.
Cheers
Ben Jiang