Not logged in - Login

Split sections of the web.config file out to separate files

An example of how to split out sections of the web.config file to separate files.

This example demonstrates how to move the appSettings section from the web.config to a separate file:

Instead of the standard <appSettings> node, replace it with the following:

<appSettings configSource="appsettings.config" />

Create a file called 'appsettings.config' and set its contents to look something like this:

   <add key="DummyEntry" value="12345" />
   <add key="Setting1" value="abc" />