configsource

Using configSource, and changing restartOnExternalChanges for core section

I'd like to use the configSource attribute of my web config section to define external files for various settings. Particularly, the appSettings section. This means my config file has the following entry: <appSettings configSource="My.AppSettings.config" /> However, if this file is updated, the settings are not automatically picked u...

configsource and installer

Hi all, I have an project csproj, with app.config file, and logging Ent.Library section using configsource attribute. The logging section is in ahother file Config\loggingconfiguration.config. I have a Installer Project for this csproj. But when I generate , the file loggingconfiguration.config is NOT include. Any suggestions ?? Tha...

Is it possible to use the configSource attributes on Custom ConfigurationElement classes in web.config?

I know it's possible to reference external configuration files for a configuration section but I'd like to go one step further and reference config files from a configuration element. i.e. <CustomConfigSection> <Plugins> <Plugin configSource="plugin.config"/> <Plugin configSource="another_plugin.config"/> </Plu...

Use a dynamically generated file as configSource in web.config

Is there a way to use a generated file as a configSource for a web.config section? In web.config, I tried a simple: <webParts configSource="webpartsConfig.aspx" /> where webpartsConfig.aspx just spits out XML when accessed normally, but not as a configSource. (The literal source code is included as-is, giving an error.) Any solutions...

Can configSource point to another DLL?

Hi, Is it possible for a configSource to point to another DLL? For example configSource = "SomeOtherDllName.connectionStrings.config" Thank you ...

IIS7 Manager doesn't maintain configSource reference

I use ConfigSource=localfile to keep my connectionstrings in a separate file on the productiton server. This works great. But if you use IIS7 Manager to edit connectionstrings on the server, the strings end up back in the web.config. Subsequent deployments then trash those edits when the new web.config arrives. II7, if it edits your ...

External Config Files with elmah

I am using elmah (v1.1.11517.0) and am trying to move the config to an external source. My config currently looks like this: <?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="elmah"> <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah"/> ...

Problem accessing AppSettings via configSource in Windows Server 2003

According to the MSDN documentation, configSource is supported on Windows Server 2003 SP2. However, when I try to access a setting using the following syntax: System.Configuration.ConfigurationManager.AppSettings["SettingName"]; then null is returned. However, the same app works properly on Windows 7 and Windows XP (i.e. AppSettings["...