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;
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
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");
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 {
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