Seperating Environment Specific Information – Web.config
Uncategorized October 2nd, 2008I have these four sections in my web.config that needed to be defined out of the web.config. This is very usefull when doing an update at a customer’s environment. The only thing I need to copy is the web.config itself without the four other config files that are specific to the environment running at the customer.
In Web.config:
1 2 3 4 | <log4net configSource="WebLog4Net.config" /> <connectionStrings configSource="WebConnectionString.config" /> <SubSonicService configSource="WebSubSonicService.config" /> <appSettings configSource="WebAppSettings.config" /> |
WebConnectionStrings.config:
1 2 3 4 5 6 | <connectionStrings> <add name="TLVSRVDevConnection" connectionString="..."/> <add name="TLVSRVProdConnection" connectionString="..."/> </connectionStrings> |
No TweetBacks yet. (Be the first to Tweet this post)
Follow Me!