El TecnoBaúl de Kiquenet

Kiquenet boring stories

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=2.0.0.0, 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

http://msdn.microsoft.com/en-us/library/ms404289.aspx)

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."

Ejemplo:

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

Referencias:
http://world.episerver.com/Blogs/Magnus-Rahl/Dates/2011/6/Todays-gotcha-configSource-on-the-runtime-section-element/

http://social.msdn.microsoft.com/Forums/en-AU/clr/thread/7552df69-d3a0-49e4-b45f-0fa4972fa64c

http://blogs.msdn.com/b/junfeng/archive/2005/02/08/369662.aspx

Anuncios

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s

 
A %d blogueros les gusta esto: