Sí, se puede
en la sección que querés leer externamente hacés esto:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="exceptionHandling" type="
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings,
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=null" />
</configSections>
<exceptionHandling configSource="exceptions.config" />
</configuration>
en exception.config
<?xml version="1.0" encoding="utf-8"?>
<exceptionHandling>
<exceptionPolicies>
<add name="Tom's Policy">
<exceptionTypes>
<add type="System.Exception, mscorlib, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089"
postHandlingAction="ThrowNewException" name="Exception">
<exceptionHandlers>
<add exceptionMessage="Crikey!" replaceExceptionType="
System.ApplicationException, mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" type="
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ReplaceHandler,
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=null"
name="Replace Handler" />
</exceptionHandlers>
</add>
</exceptionTypes>
</add>
</exceptionPolicies>
</exceptionHandling>
Cuidado con el editor de EntLib porque si editrás después de esto puede ser
que te rompa todo, saludos.
On Tue, Mar 11, 2008 at 12:01 PM, Leandro Tuttini <
[EMAIL PROTECTED]> wrote:
>
> Hola, que tal.
>
> Con el suod e tantos App Block es inevitable tener archivos de
> configuracion tremendamente grandes y muy complicados de leer.
>
> La consulta seria simple, se puede seccionar el web.config, o el
> app.config para que cada App block o section sea leida de una archivo
> separado?
>
> Bueno seria esto simplemente.
> Saludos
>
> ------------------------------
>
> Tarjeta de crédito Yahoo! de Banco Supervielle. Solicitá tu nueva Tarjeta
> de crédito. De tu PC directo a tu casa.
> Visitá www.tuprimeratarjeta.com.ar
>
>
--
Leonardo Micheloni.
http://leomicheloni.blogspot.com/