|
|
@@ -140,6 +140,9 @@ namespace System.Web.Configuration
|
|
|
}
|
|
|
|
|
|
string dir = UrlUtils.GetDirectory (filepath);
|
|
|
+ if (dir == "/")
|
|
|
+ dir = "";
|
|
|
+
|
|
|
if (fileToConfig.ContainsKey (dir)) {
|
|
|
ConfigurationData data = (ConfigurationData) fileToConfig [dir];
|
|
|
if (CheckFileCache (data))
|
|
|
@@ -154,9 +157,6 @@ namespace System.Web.Configuration
|
|
|
if (isUpper && isLower && Directory.GetFiles (realpath, "Web.config").Length < 2)
|
|
|
throw new ConfigurationException ("Both web.config and Web.config exist for " + dir);
|
|
|
|
|
|
- if (dir == "/")
|
|
|
- dir = "";
|
|
|
-
|
|
|
string wcfile = (isUpper) ? upper : (isLower) ? lower : null;
|
|
|
ConfigurationData parent = GetConfigFromFileName (dir, context);
|
|
|
if (wcfile == null || parent.FileName == wcfile) {
|