Sunday, March 25, 2007

Here is my way of getting a DotNet DLL to load its app.config file.

AppDomain.CurrentDomain.SetData ("APP_CONFIG_FILE",ConfigFile);

Where ConfigFile is the full path to your application's app.config file.(c:\test\myapp.config)