2009-07-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Thu, 9 Jul 2009 17:18:34 +0000 (17:18 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Thu, 9 Jul 2009 17:18:34 +0000 (17:18 -0000)
* HttpApplication.cs: use GetSection instead of
OpenWebConfiguration+GetSection.

svn path=/trunk/mcs/; revision=137638

mcs/class/System.Web/System.Web/ChangeLog
mcs/class/System.Web/System.Web/HttpApplication.cs

index 677acc3661a79951c3bb55d9b646eca23548b8b3..cebe930c660cfbc226c3663cbfefc115202c6f7f 100644 (file)
@@ -1,3 +1,8 @@
+2009-07-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpApplication.cs: use GetSection instead of
+       OpenWebConfiguration+GetSection.
+
 2009-07-09  Marek Habersack  <mhabersack@novell.com>
 
        * HttpContext.cs: fall back to default resource provider factory
index 94d5342b592b0af0a0b464a0de9683269f1b8aef..cb28034f17999bff2538e615d3f61e791d7d447f 100644 (file)
@@ -1602,8 +1602,7 @@ namespace System.Web {
 
                        bool allowCache;
 #if NET_2_0
-                       global::System.Configuration.Configuration cfg = WebConfigurationManager.OpenWebConfiguration (req.Path, null, req.FilePath);
-                       HttpHandlersSection httpHandlersSection = cfg.GetSection ("system.web/httpHandlers") as HttpHandlersSection;
+                       HttpHandlersSection httpHandlersSection = WebConfigurationManager.GetSection ("system.web/httpHandlers", req.Path, req.Context) as HttpHandlersSection;
                        ret = httpHandlersSection.LocateHandler (verb, url, out allowCache);
 #else
                        HandlerFactoryConfiguration factory_config = (HandlerFactoryConfiguration) HttpContext.GetAppConfig ("system.web/httpHandlers");