Tech_dopamine
Tech_dopamine

Reputation: 77

How to define application specific config file in Biztalk and consume it in specific application?

Could you please help to define a define application specific config file in Biztalk and consume it in specific application? (We are using Biztalk 2016)

In my scenario we have 3 applications. Two are working fine in production environment, but one is breaking.

My problem is all keys are defined in BTNSVC.exe.config file globally (connection string as well as some dependent DLL version details), So we always tend to roll back all 3 application if any issue exists in 3rd application.

I tried to add some app.config files, but the application is not consuming it. In my c# code, keys are no getting fetched but in BTNSCV.confg is working with same code.

My expectation: My requirement is to define 3 application specific config files (like web.config or app.config) and consume them.

Upvotes: 0

Views: 86

Answers (1)

Dijkgraaf
Dijkgraaf

Reputation: 11527

If you don't want it in the BTNSVC.exe.config file, but in separate files. you need to create a helper class that you can call, that will load that file, and fetch the configuration from it. You could make this a class re-usable by all three applications by having one of the parameters the Application name, which would determine which configuration file to load.

Upvotes: 0

Related Questions