Just like web.config in asp.net and app.config in .net applicaiton. BizTalk server stored configuration values in name value pair.
The File Name is “BTSNTSvc.Exe.Config”.
It is located at biztalk installation directory on you machines like
c:program files BizTalk Server 2006BTSNTSvc.exe.config”
Sample config file look like this
<?xml version=”1.0″ ?>
<configuration>
<configSections>
<section name=”xlangs” type=”Microsoft.XLANGs.BizTalk.CrossProcess.XmlSerializationConfigurationSectionHandler, Microsoft.XLANGs.BizTalk.CrossProcess” />
</configSections>
<!– these settings are for BTS making HTTP/SOAP calls out, 2 concurrent connections is the default.
This should be in EVERY system where BTS is calling WebServices –>
<system.net>
<connectionManagement>
<add address=”*” maxconnection=”40″/>
</connectionManagement>
</system.net>
<runtime>
<assemblyBinding xmlns=”urn:schemas-microsoft-com:asm.v1″>
<probing privatePath=”BizTalk Assemblies;Developer Tools;Tracking;Trackinginterop” />
</assemblyBinding>
</runtime>
<system.runtime.remoting>
<channelSinkProviders>
<serverProviders>
<provider id=”sspi” type=”Microsoft.BizTalk.XLANGs.BTXEngine.SecurityServerChannelSinkProvider,Microsoft.XLANGs.BizTalk.Engine” securityPackage=”ntlm” authenticationLevel=”packetPrivacy” />
</serverProviders>
</channelSinkProviders>
<application>
<channels>
<channel ref=”tcp” port=”0″ name=””>
<serverProviders>
<provider ref=”sspi” />
<formatter ref=”binary” typeFilterLevel=”Full”/>
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
<appSettings>
<add key=”Key1″ value=”Hello, World!” />
</appSettings>
<xlangs>
<Configuration><!– MaxThreshold – “Max time in memory an Orch will reside before dehydrat” MinThreshold – “Min time” –>
<Dehydration MaxThreshold=”1800″ MinThreshold=”1″ ConstantThreshold=”-1″>
<!– Currently, virtual memory can become a bottleneck on 32-bit machines due to unmanaged heap fragmentation, so you should throttle by this resource as well. –>
<VirtualMemoryThrottlingCriteria OptimalUsage=”900″” MaximalUsage=”1300″ IsActive=”true” />
<!– This is a useful criterion for throttling, but appropriate values depend on whether the box is being shared among servers. If the machine has a lot of RAM and is not being shared with other functions, then these values can be significantly increased.Optimal and maximal usage are in MB.–>
<PrivateMemoryThrottlingCriteria OptimalUsage=”50″ MaximalUsage=”350″ IsActive=”true” />
</Dehydration>
<Debugging ValidateSchemas=”true” ValidateAssemblies=”true” ExtendedLogging=”true” ValidateCorrelations=”false” />
<AppDomains AssembliesPerDomain=”10″>
<AppDomainSpecs>
<AppDomainSpec Name=”DemoDomain” SecondsIdleBeforeShutdown=”-1″ SecondsEmptyBeforeShutdown=”12000″ />
</AppDomainSpecs>
<ExactAssignmentRules>
<ExactAssignmentRule AssemblyName=”Configuration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3a7d0586c62e754b” AppDomainName=”DemoDomain” />
</ExactAssignmentRules>
</AppDomains>
</Configuration>
</xlangs>
</configuration>
It is very difficult to maintain BTSNTSvc.exe.config file if there are a lot of BizTalk application are running on BizTalk server. To easily maintained the BizTalk applications. The solution is to have separate configuration files for every application. Attach/import the path of these config files in BtsNTSvc.exe.config
1. In the “BtsNTSvc.exe.config” put an entry in the configSections
<?xml version=”1.0″ ?>
<configuration>
<configSections>
<section name=”MyAppSettings” type=”System.Configuration.NameValueFileSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089″ />
</ configSections>
…
</configuration>
2. In the “BtsNTSvc.exe.config” put an entry that associate the section with the external file
<?xml version=”1.0″ ?>
<configuration>
<configSections>
…
</configSections>
<runtime>
…
</runtime>
<system.runtime.remoting>
…
</system.runtime.remoting>
< MyAppSettings file=” MyApp.config” />
</configuration>
Two Important points to be noted
- 1. Please take the back up of BtsNTSvc.exe.config before modifying it.
- 2. After medication and save. Please restart the host instances.