G
Guest
I'm undergoing an audit where my web application is supposed to handle
(gracefully) a bunch of garbage being throwns at it.
When I use the following url I get an error;
http://localhost/myapplication/~Home/Page.aspx
where the offending character is the tilde.
[HttpException (0x80070057): Invalid file name for monitoring:
'C:\projects\myapplication\~Home'. File names for monitoring must have
absolute paths, and no wildcards.]
System.Web.DirectoryMonitor.AddFileMonitor(String file) +429
System.Web.DirectoryMonitor.StartMonitoringFile(String file,
FileChangeEventHandler callback, String alias) +76
System.Web.FileChangesMonitor.StartMonitoringPath(String alias,
FileChangeEventHandler callback) +495
System.Web.Caching.CacheDependency.Init(Boolean isPublic, Boolean
isSensitive, String[] filenamesArg, String[] cachekeysArg, CacheDependency
dependency, DateTime utcStart) +1535
System.Web.Caching.CacheDependency..ctor(Boolean isSensitive, String[]
filenames, DateTime utcStart) +50
System.Web.Configuration.HttpConfigurationSystem.GetCacheDependencies(Hashtable cachedeps, DateTime utcStart) +151
System.Web.Configuration.HttpConfigurationSystem.ComposeConfig(String
reqPath, IHttpMapPath configmap) +760
System.Web.HttpContext.GetCompleteConfigRecord(String reqpath,
IHttpMapPath configmap) +434
System.Web.HttpContext.GetCompleteConfig() +49
System.Web.HttpContext.GetConfig(String name) +195
System.Web.CustomErrors.GetSettings(HttpContext context, Boolean
canThrow) +20
System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean canThrow)
+40
System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext
context, Exception e) +480
This is happening before the Application's BeginRequest fires, so I don't
get a chance to handle it.
Of course setting customErrors mode="On" prevents the detailed exception
from being displayed, which is very good. However in this case the
defaultRedirect doesn't seem to be working.
Has anyone else seen this? I'm not ruling out Monday morning brain
dysfunction.
(gracefully) a bunch of garbage being throwns at it.
When I use the following url I get an error;
http://localhost/myapplication/~Home/Page.aspx
where the offending character is the tilde.
[HttpException (0x80070057): Invalid file name for monitoring:
'C:\projects\myapplication\~Home'. File names for monitoring must have
absolute paths, and no wildcards.]
System.Web.DirectoryMonitor.AddFileMonitor(String file) +429
System.Web.DirectoryMonitor.StartMonitoringFile(String file,
FileChangeEventHandler callback, String alias) +76
System.Web.FileChangesMonitor.StartMonitoringPath(String alias,
FileChangeEventHandler callback) +495
System.Web.Caching.CacheDependency.Init(Boolean isPublic, Boolean
isSensitive, String[] filenamesArg, String[] cachekeysArg, CacheDependency
dependency, DateTime utcStart) +1535
System.Web.Caching.CacheDependency..ctor(Boolean isSensitive, String[]
filenames, DateTime utcStart) +50
System.Web.Configuration.HttpConfigurationSystem.GetCacheDependencies(Hashtable cachedeps, DateTime utcStart) +151
System.Web.Configuration.HttpConfigurationSystem.ComposeConfig(String
reqPath, IHttpMapPath configmap) +760
System.Web.HttpContext.GetCompleteConfigRecord(String reqpath,
IHttpMapPath configmap) +434
System.Web.HttpContext.GetCompleteConfig() +49
System.Web.HttpContext.GetConfig(String name) +195
System.Web.CustomErrors.GetSettings(HttpContext context, Boolean
canThrow) +20
System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean canThrow)
+40
System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext
context, Exception e) +480
This is happening before the Application's BeginRequest fires, so I don't
get a chance to handle it.
Of course setting customErrors mode="On" prevents the detailed exception
from being displayed, which is very good. However in this case the
defaultRedirect doesn't seem to be working.
Has anyone else seen this? I'm not ruling out Monday morning brain
dysfunction.