Currently I'm having to include a significant chunk of XML in the app.config to get the CAB CacheManager going and I'd rather hide the configuration away in my code.
Is there any way to programmatically configure an Enterprise Library Caching Application Block's CacheManager?
why don't you use configSource attribute in your web.config to move to another config file the CAB configuration?
For Example:
And then, in Config\Caching.config:
..
As far as I know, you can use a separate config file for each configSection in your web.config
s.