Using app.config with a custom .NET assembly from orchestration
Here is the scenario: I have an orchestration that uses an expression shape to call a .NET assembly. This custom assembly needs to reference a configuration file that is different for 3 environments (development, test, and production). I would like for my custom assembly to load a type of config file at runtime. How can I load a configuration file since neither the orchestration or class library have their own app.config files? Should I just create and use an XML file to store the settings? Thanks for any responses.
[522 byte] By [
RobbyP] at [2008-1-5]
ok..
You can create three types of configuration file for each of your environment, say UAT,LIVE,DEV,
now these files will be placed on some location , create a key in the Biz talk configuration file for these configuration file Locations.
When you orchestration will run , pick the value of your configuration file from AppSettings , pass this value to your custom component , write a method in your custom component to read your settings,
I have implemented this method in one of my applications and it is working for me for last one year without any issues.
Cheers