From 870451e6b96b48e3aa33168a96e81325809e21d4 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Sat, 25 Nov 2006 00:53:38 +0000 Subject: [PATCH] 2006-11-24 Miguel de Icaza * ApplicationHost.cs: In 2.0, as Todd reports the default is "Web.Config", try that before we tell people to use MONO_IOMAP=all ;-) svn path=/trunk/mcs/; revision=68447 --- mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs | 2 +- mcs/class/System.Web/System.Web.Hosting/ChangeLog | 5 +++++ mcs/class/System.Web/System.Web/ChangeLog | 5 +++++ mcs/class/System.Web/System.Web/HttpApplicationFactory.cs | 2 ++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs b/mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs index fed91f5bf71..fcf1efa628c 100644 --- a/mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs +++ b/mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs @@ -37,7 +37,7 @@ namespace System.Web.Hosting { [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] public sealed class ApplicationHost { - static string [] types = { "Web.config", "web.config" }; + static string [] types = { "Web.config", "Web.Config", "web.config" }; private ApplicationHost () { diff --git a/mcs/class/System.Web/System.Web.Hosting/ChangeLog b/mcs/class/System.Web/System.Web.Hosting/ChangeLog index 1b3384dfa17..9358155e2fc 100644 --- a/mcs/class/System.Web/System.Web.Hosting/ChangeLog +++ b/mcs/class/System.Web/System.Web.Hosting/ChangeLog @@ -1,3 +1,8 @@ +2006-11-24 Miguel de Icaza + + * ApplicationHost.cs: In 2.0, as Todd reports the default is + "Web.Config", try that before we tell people to use MONO_IOMAP=all ;-) + 2006-11-07 Gonzalo Paniagua Javier * ApplicationHost.cs: the new Directory code throws if the directory diff --git a/mcs/class/System.Web/System.Web/ChangeLog b/mcs/class/System.Web/System.Web/ChangeLog index d717394029e..722436b791a 100644 --- a/mcs/class/System.Web/System.Web/ChangeLog +++ b/mcs/class/System.Web/System.Web/ChangeLog @@ -1,3 +1,8 @@ +2006-11-24 Miguel de Icaza + + * HttpApplicationFactory.cs (InitType): Also look for "Web.Config" + casing here. + 2006-11-20 Marek Habersack * HttpApplication.cs: Added support for automatic detection of diff --git a/mcs/class/System.Web/System.Web/HttpApplicationFactory.cs b/mcs/class/System.Web/System.Web/HttpApplicationFactory.cs index a340fe26f35..d86c79b04e3 100644 --- a/mcs/class/System.Web/System.Web/HttpApplicationFactory.cs +++ b/mcs/class/System.Web/System.Web/HttpApplicationFactory.cs @@ -420,6 +420,8 @@ namespace System.Web { string config_file = Path.Combine (physical_app_path, "Web.config"); if (!File.Exists (config_file)) config_file = Path.Combine (physical_app_path, "web.config"); + if (!File.Exists (config_file)) + config_file = Path.Combine (physical_app_path, "Web.Config"); config_watcher = CreateWatcher (config_file, fseh, reh); #endif -- 2.11.4.GIT