• Skip to main content
  • Skip to primary sidebar
  • Home
  • About
  • Recommended Readings
    • 2022 Book Reading
    • 2023 Recommended Readings
    • Book Reading 2024
    • Book Reading 2025
  • Supply Chain Management Guide
  • PKM
  • Microsoft Excel

Ali Raza Zaidi

A practitioner’s musings on Dynamics 365 Finance and Operations

BTSNTSvc.Exe.Config

August 15, 2011 by alirazazaidi

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. 1. Please take the back up of BtsNTSvc.exe.config before modifying it.
  2. 2. After medication and save. Please restart the host instances.

Filed Under: Uncategorized

Primary Sidebar

About

I am Dynamics AX/365 Finance and Operations consultant with years of implementation experience. I has helped several businesses implement and succeed with Dynamics AX/365 Finance and Operations. The goal of this website is to share insights, tips, and tricks to help end users and IT professionals.

Legal

Content published on this website are opinions, insights, tips, and tricks we have gained from years of Dynamics consulting and may not represent the opinions or views of any current or past employer. Any changes to an ERP system should be thoroughly tested before implementation.

Categories

  • Accounts Payable (2)
  • Advance Warehouse (2)
  • Asset Management (3)
  • Azure Functions (1)
  • Books (6)
  • Certification Guide (3)
  • Customization Tips for D365 for Finance and Operations (62)
  • D365OF (59)
  • Data Management (1)
  • database restore (1)
  • Dynamics 365 (58)
  • Dynamics 365 for finance and operations (135)
  • Dynamics 365 for Operations (165)
  • Dynamics AX (AX 7) (134)
  • Dynamics AX 2012 (274)
  • Dynamics Ax 2012 Forms (13)
  • Dynamics Ax 2012 functional side (16)
  • Dynamics Ax 2012 Reporting SSRS Reports. (31)
  • Dynamics Ax 2012 Technical Side (52)
  • Dynamics Ax 7 (65)
  • Exam MB-330: Microsoft Dynamics 365 Supply Chain Management (7)
  • Excel Addin (1)
  • Favorites (12)
  • Financial Modules (6)
  • Functional (8)
  • Implementations (1)
  • Lifecycle Services (1)
  • Logseq (4)
  • Management Reporter (1)
  • Microsoft Excel (4)
  • MS Dynamics Ax 7 (64)
  • MVP summit (1)
  • MVP summit 2016 (1)
  • New Dynamics Ax (19)
  • Non Defined (9)
  • Note taking Apps (2)
  • Obsidian (3)
  • Personal Knowledge Management (2)
  • PKM (13)
  • Power Platform (6)
  • Procurement (5)
  • procurement and sourcing (5)
  • Product Information Management (4)
  • Product Management (6)
  • Production Control D365 for Finance and Operations (10)
  • Sale Order Process (10)
  • Sale Order Processing (9)
  • Sales and Distribution (5)
  • Soft Skill (1)
  • Supply Chain Management D365 F&O (3)
  • Tips and tricks (278)
  • Uncategorized (165)
  • Upgrade (1)
  • Web Cast (7)
  • White papers (4)
  • X++ (7)

Copyright © 2025 · Magazine Pro On Genesis Framework · WordPress · Log in