* WebConfigurationSettings.cs: patch by Cyrille Colin that sets the
right application path even when MapPath fails. Closes bug #77044.
svn path=/trunk/mcs/; revision=54716
+2005-12-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * 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 <gonzalo@ximian.com>
* WebConfigurationSettings.cs: don't fail if <location> has more
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;