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.
Share
You can use the
configSourceattribute/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.configandapp.configfiles.