Home / Software / Tips and Tricks / How web.confg file can Reference an External config File?

How web.confg file can Reference an External config File?

Updated:  10/03/2012 08:10 AM
Author:  Shiju Mathews

Status:    Resolved.


In web sites 'web.confg' files can Reference and read an External config file. This is useful in many situations when one project is referencing another project. This is also help to manage the solution by avoiding the duplicate configuration setting values and connection string.

Add a web.config the the web project. Open the web.config file and edit the 'appSettings' element under configuration.


Now add your External.config to D:\projects directory

External.config