Locating App,config for Data Access Block

Topics: CAB & Smart Client Software Factory
Feb 28, 2007 at 7:54 PM
I am building a CAB app. I am defining database components (connection string etc) in the module's app.config file instead of the Shell's config file. Problem is, the module's config file is apparently not being detected. I would rather not modify the shell's config to point to module's config. Can I keep database definitions in the module's config? If so, how can I get the module's code to look in it's own config?

Mar 1, 2007 at 8:07 PM
Hi michaelklapp,

You are right about the module’s config not being detected since the main config would be that of the shell (the application). If you want to use a different config file please take a look at the following thread:


Let me know if this helps,

Federico Delgado
Mar 1, 2007 at 8:24 PM
This looks useful and I will use it but it seems I will not be able to use the Generic database class from the Enterprise Library. The derived database classes can be used because I will be able to extract the connection strings.

Mar 1, 2007 at 9:47 PM
If you want to look at alternate ways of defining config files for the Enterprise Library, maybe you should check out http://blogs.msdn.com/tomholl/archive/2006/04/02/entlib2externalconfig.aspx
Mar 2, 2007 at 7:28 PM
Very cool. Thanks.