Author: toshok
Date: 2006-04-25 17:50:08 -0400 (Tue, 25 Apr 2006)
New Revision: 59878
Modified:
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationHost.cs
Log:
* WebConfigurationHost.cs (InitForConfiguration): actually, use
HttpRuntime.AppDomainAppVirtualPath on gonzalo's recommendation.
It's never null, and its use cleans things up a bit.
2006-04-25 Chris Toshok <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
2006-04-25 21:47:24 UTC (rev 59877)
+++ trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
2006-04-25 21:50:08 UTC (rev 59878)
@@ -1,5 +1,11 @@
2006-04-25 Chris Toshok <[EMAIL PROTECTED]>
+ * WebConfigurationHost.cs (InitForConfiguration): actually, use
+ HttpRuntime.AppDomainAppVirtualPath on gonzalo's recommendation.
+ It's never null, and its use cleans things up a bit.
+
+2006-04-25 Chris Toshok <[EMAIL PROTECTED]>
+
* WebConfigurationHost.cs (InitForConfiguration): stop going up
the virtual hierarchy once we reach the application's base virtual
path.
Modified:
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationHost.cs
===================================================================
---
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationHost.cs
2006-04-25 21:47:24 UTC (rev 59877)
+++
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationHost.cs
2006-04-25 21:50:08 UTC (rev 59878)
@@ -170,15 +170,7 @@
else
configPath = locationSubPath;
- string basedir = null;
- if (HttpContext.Current != null
- && HttpContext.Current.Request != null)
- basedir =
HttpContext.Current.Request.ApplicationPath;
-
- if (basedir == null)
- basedir = "/";
-
- if (configPath == basedir)
+ if (configPath ==
HttpRuntime.AppDomainAppVirtualPath)
i = -1;
else
i = configPath.LastIndexOf ("/");
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches