c# - Can I use an external file for system.web config similar to file attribute for appSettings -


i hoping separate identity config in system.web section of web.config , put in separate file don't have check in source control username/password being used.

is possible? looks file attribute doesn't work system.web section , if configsource attribute work, wouldn't want have of system.web config section in different file.

can help?

thanks!

a bit more research has revealed while can't use configsource or file attributes on <system.web> section, can use on tags within it.

for example, wanted move our globalization settings out of web.config globalization.config, , changed our web config this:

<system.web>     <globalization requestencoding="utf-8" responseencoding="utf-8" culture="auto" uiculture="auto" />     <!-- other settings removed --> </system.web> 

to this

<system.web>     <globalization configsource="globalization.config" />     <!-- other settings removed --> </system.web> 

Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -