Thursday, August 14, 2014

How to Add a Custom Section to BTSNTSvc.exe.config (BizTalk Server Config File)?

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.

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

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

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

In case 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 Event Log:
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.
Post a Comment