Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Context/Support
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv9175
Modified Files:
WebContextHandler.cs
Log Message:
Fixed Hierarchical context loading. SPRNET-891
Index: WebContextHandler.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Context/Support/WebContextHandler.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** WebContextHandler.cs 26 Jul 2007 14:43:33 -0000 1.7
--- WebContextHandler.cs 13 Mar 2008 20:07:43 -0000 1.8
***************
*** 89,99 ****
/// </remarks>
protected override void CreateChildContexts(IApplicationContext parentContext, object configContext,
! XmlNodeList childContexts)
{
// disable child contexts in webapps
! if (childContexts.Count > 0)
{
throw ConfigurationUtils.CreateConfigurationException(
! String.Format("Nested Child Contexts are not allowed in Web Applications."), childContexts[0]);
}
}
--- 89,99 ----
/// </remarks>
protected override void CreateChildContexts(IApplicationContext parentContext, object configContext,
! XmlNode[] childContexts)
{
// disable child contexts in webapps
! if (childContexts.Length > 0)
{
throw ConfigurationUtils.CreateConfigurationException(
! String.Format("Nested Child Contexts are not allowed in Web Applications. Use Web.config hierarchy instead."), childContexts[0]);
}
}
|