El TecnoBaúl de Kiquenet

Kiquenet boring stories

Archive for 13 noviembre 2012

ConfigSource en sección Runtime

Posted by kiquenet en 13 noviembre 2012

El uso de configSource con la sección de configuración Runtime no parece funcionar bien.

A tener en cuenta:

So the conclusion is that (at least) the runtime section can’t be read from an external file, it will be ignored.

So the conclusion is still that the runtime section in an external file will be ignored (even if the file itself is actaully read).

La sección runtime se define de la siguiente manera:

 <section type="System.Configuration.IgnoreSection, System.Configuration, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" name="runtime" allowlocation="false" />

"IgnoreSection" being registered to handle "runtime" seems to suggest that this configuration is read by other means altogether, and apparently this other handling is not take configSource-aware.

According to the documentation


the assemblyBinding section defines a child element named <linkedConfiguration>.
This is used for "simplifying the management of component assemblies by allowing application configuration files to include assembly configuration files in well-known locations, rather than duplicating assembly configuration settings."


   <configuration><assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1"><linkedconfiguration href="file://c:\Program Files\Contoso\sharedConfig.xml"></linkedconfiguration></assemblybinding> 




Posted in .NET, Configuracion | Etiquetado: , , , | Leave a Comment »