If you want to add a Custom Section to the BizTalk Server Config file BTSNTSvc.exe.config, follow these Simple steps.

1. Take backup of Existing Config File.
2. Add the following Section as the First Child of Root Node.

<configSections>
    <section name=”MyConfigSection”  type=”System.Configuration.NameValueFileSectionHandler, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 “/>
</configSections>

3. Add your new Config Section below the </configSections>

eg: <MyConfigSection file=”C:\Test.xml”></MyConfigSection>

Incase if you add any wrong section to the BTSNTSvc.exe.config file, you will not be able to start your host instance. You end up getting a weird error in Admin console which like below.

And below message will be shown up in EventLog.

Log Name: Application
Source: BizTalk Server
Date: 9/29/2011 1:49:01 PM
Event ID: 5410
Task Category: BizTalk Server
Level: Error
Keywords: Classic
User: N/A
Computer: ABC
Description:
A failure occurred when executing a Windows service request.

Service request: Start

BizTalk host name: BizTalkServerApplication
Windows service name: BTSSvc$BizTalkServerApplication

Additional error information:
Error code: 0x80131604
Error source: mscorlib
Error description: Exception has been thrown by the target of an invocation.

Hope it helps.
– Shiv

  • Muhammad Kamran Khatri

    Put following section on top your configuration file under section, it will works:

    And rest that more sections you can create under

    • srikbob

      how to get the values from added config file (C:Test.xml).. do we need to write any custom component for this??

  • Anonymous

    then how to read the values from the added configuration file (C:Test.xml). do we need to write any custom component??

One Platform Operations, Monitoring and Analytics Software
BizTalk360

microsoft biztalk

Learn more

Over 500 customers across 30+ countries depend on BizTalk360

ServiceBus360

Azure service bus

Learn more

Start managing your Azure Service Bus namespaces in minutes

One Platform - Operations, Monitoring and Analytics Software
BizTalk360

microsoft biztalk

Learn more

Over 500 customers across 30+ countries depend on BizTalk360

One Platform - Operations, Monitoring and Analytics Software
ServiceBus360

Azure service bus

Learn more

Start managing your Azure Service Bus namespaces in minutes

Back to Top