2010-04-21 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System.Web / System.Web / HttpApplication.jvm.cs
index bb7c1179cab710a5daee8902140968f97c811c33..c356aa9bb7c28478498ae98e41d3e2d18324c274 100644 (file)
@@ -143,9 +143,9 @@ namespace System.Web {
                                if (modcoll != null)
                                        return;
 
-#if CONFIGURATION_2_0
+#if NET_2_0
                                HttpModulesSection modules;
-                               modules = (HttpModulesSection) WebConfigurationManager.GetWebApplicationSection ("system.web/httpModules");
+                               modules = (HttpModulesSection) WebConfigurationManager.GetSection ("system.web/httpModules");
 #else
                                ModulesConfiguration modules;
 
@@ -157,9 +157,9 @@ namespace System.Web {
                                if (full_init)
                                        HttpApplicationFactory.AttachEvents (this);
 
-#if CONFIGURATION_2_0
+#if NET_2_0
                                GlobalizationSection cfg;
-                               cfg = (GlobalizationSection) WebConfigurationManager.GetWebApplicationSection ("system.web/globalization");
+                               cfg = (GlobalizationSection) WebConfigurationManager.GetSection ("system.web/globalization");
                                app_culture = cfg.GetCulture();
                                appui_culture = cfg.GetUICulture();
 #else
@@ -1495,8 +1495,8 @@ yield_19:
                        string url = request.FilePath;
                        
                        IHttpHandler handler = null;
-#if CONFIGURATION_2_0
-                       HttpHandlersSection section = (HttpHandlersSection) WebConfigurationManager.GetWebApplicationSection ("system.web/httpHandlers");
+#if NET_2_0
+                       HttpHandlersSection section = (HttpHandlersSection) WebConfigurationManager.GetSection ("system.web/httpHandlers");
                        object o = section.LocateHandler (verb, url);
 #else
                        HandlerFactoryConfiguration factory_config = (HandlerFactoryConfiguration) HttpContext.GetAppConfig ("system.web/httpHandlers");
@@ -1595,8 +1595,8 @@ yield_19:
                        if (!context.IsCustomErrorEnabled)
                                return false;
                        
-#if CONFIGURATION_2_0
-                       CustomErrorsSection config = (CustomErrorsSection)WebConfigurationManager.GetWebApplicationSection ("system.web/customErrors");
+#if NET_2_0
+                       CustomErrorsSection config = (CustomErrorsSection)WebConfigurationManager.GetSection ("system.web/customErrors");
 #else
                        CustomErrorsConfig config = null;
                        try {
@@ -1611,7 +1611,7 @@ yield_19:
                                return false;
                        }
                        
-#if CONFIGURATION_2_0
+#if NET_2_0
                        CustomError err = config.Errors [context.Response.StatusCode.ToString()];
                        string redirect = err == null ? null : err.Redirect;
 #else