Q:

Is there a way to have web.config values overwrite app.config values?

I have a web project that references a dll project that uses an app.config value.  Is there a way to put the app.config values in the web.config so when the web project is run it pulls the values from the web.config?  I've heard of this happening but I'm not 100% sure of it.

A:

You can use the configSource attribute/property of each config element - this allows you to put sections of your configuration in an external file.
Once in an external file, you can reference this file from both your web.config and app.config files.

