2009-06-05 Marek Habersack <mhabersack@novell.com>
authorMarek Habersack <grendel@twistedcode.net>
Fri, 5 Jun 2009 20:53:26 +0000 (20:53 -0000)
committerMarek Habersack <grendel@twistedcode.net>
Fri, 5 Jun 2009 20:53:26 +0000 (20:53 -0000)
commit6a261e04add13efa6eb43ed015ab26953c2b3a95
treeba9172ba48c347da20fbb15d7987f181849539c4
parentef049fc1664f178d3f3b9c778e32fee8eb59c1a3
2009-06-05  Marek Habersack  <mhabersack@novell.com>

* VirtualPathUtility.cs: IsValidVirtualPath no longer uses
WebConfigurationManager.GetSection to retrieve the verification
setting. Instead, the setting is retrieved in the static
constructor.

* HttpRequest.cs: ApplyUrlMapping must not use
WebConfigurationManager.GetSection as it would cause a recursive
call loop. Code to detect whether url mappings are in effect has
been moved to a static constructor.

2009-06-05  Marek Habersack  <mhabersack@novell.com>

* Page.cs: InitializeTheme uses WebConfigurationManager.GetSection
to retrieve page theme name. GetWebApplicationSection cannot be
used because the system.web/pages section is valid also in
subdirectories. Fixes bug #510302

2009-06-05  Marek Habersack  <mhabersack@novell.com>

* WebConfigurationManager.cs: OpenWebConfiguration caches
configurations with a key generated from all the parameters passed
to it, not just from path.
Added internal GetSection method which takes HttpContext as its
third parameter - used in calling OpenWebConfiguration.
FindWebConfig is no longer used in GetSection - it breaks handling
of <location> elements in config files. Fixes bug #510302

svn path=/trunk/mcs/; revision=135558
mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs
mcs/class/System.Web/System.Web.UI/ChangeLog
mcs/class/System.Web/System.Web.UI/Page.cs
mcs/class/System.Web/System.Web/ChangeLog
mcs/class/System.Web/System.Web/HttpRequest.cs
mcs/class/System.Web/System.Web/VirtualPathUtility.cs