+2004-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * WebConfigurationSettings.cs: use CurrentExecutionFilePath instead of
+ FilePath. Fixes bug #67982.
+
2004-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* WebConfigurationSettings.cs: fix bug when processing empty location
if (context == null)
return null;
- ConfigurationData config = GetConfigFromFileName (context.Request.FilePath, context);
+ ConfigurationData config = GetConfigFromFileName (context.Request.CurrentExecutionFilePath, context);
if (config == null)
return null;
public void Init (HttpContext context)
{
+ if (initCalled)
+ return;
+
lock (this) {
if (initCalled)
return;
public FileWatcherCache (ConfigurationData data)
{
this.data = data;
- cacheTable = Hashtable.Synchronized (new Hashtable ());
+ cacheTable = new Hashtable ();
this.path = Path.GetDirectoryName (data.FileName);
this.filename = Path.GetFileName (data.FileName);
if (!Directory.Exists (path))
public object GetConfig (string sectionName, HttpContext context)
{
if (locations != null && dirname != null) {
- string reduced = UrlUtils.MakeRelative (context.Request.FilePath, dirname);
+ string reduced = UrlUtils.MakeRelative (context.Request.CurrentExecutionFilePath, dirname);
string [] parts = reduced.Split ('/');
Location location = null;
int length = parts.Length;
+2004-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * TraceContext.cs: don't cast to Page is the handler it's
+ not a page.
+
2004-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* HttpRequest.cs: CurrentExecutionFilePath is the one that
if (data == null)\r
data = new TraceData ();\r
SetRequestDetails ();\r
- data.AddControlTree ((Page) _Context.Handler);\r
+ if (_Context.Handler is Page)
+ data.AddControlTree ((Page) _Context.Handler);
+
AddCookies ();\r
AddHeaders ();\r
AddServerVars ();\r