Author: gonzalo
Date: 2005-12-21 22:26:28 -0500 (Wed, 21 Dec 2005)
New Revision: 54716

Modified:
   trunk/mcs/class/System.Web/System.Web.Configuration/ChangeLog
   
trunk/mcs/class/System.Web/System.Web.Configuration/WebConfigurationSettings.cs
Log:
2005-12-22 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * WebConfigurationSettings.cs: patch by Cyrille Colin that sets the
        right application path even when MapPath fails. Closes bug #77044.



Modified: trunk/mcs/class/System.Web/System.Web.Configuration/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Configuration/ChangeLog       
2005-12-22 03:15:41 UTC (rev 54715)
+++ trunk/mcs/class/System.Web/System.Web.Configuration/ChangeLog       
2005-12-22 03:26:28 UTC (rev 54716)
@@ -1,3 +1,8 @@
+2005-12-22 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * WebConfigurationSettings.cs: patch by Cyrille Colin that sets the
+       right application path even when MapPath fails. Closes bug #77044.
+
 2005-12-02 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * WebConfigurationSettings.cs: don't fail if <location> has more

Modified: 
trunk/mcs/class/System.Web/System.Web.Configuration/WebConfigurationSettings.cs
===================================================================
--- 
trunk/mcs/class/System.Web/System.Web.Configuration/WebConfigurationSettings.cs 
    2005-12-22 03:15:41 UTC (rev 54715)
+++ 
trunk/mcs/class/System.Web/System.Web.Configuration/WebConfigurationSettings.cs 
    2005-12-22 03:26:28 UTC (rev 54716)
@@ -210,7 +210,12 @@
                        if (data != null)
                                return data;
 
-                       string realpath = context.Request.MapPath (dir);
+                       string realpath = null;
+                       try {
+                               realpath = context.Request.MapPath (dir);
+                       } catch {
+                               realpath = context.Request.MapPath 
(HttpRuntime.AppDomainAppVirtualPath);
+                       }
                        string lower = Path.Combine (realpath, "web.config");
                        bool isLower = File.Exists (lower);
                        string wcfile = null;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to