HttpException - 文件不存在

时间:2013-12-04 10:19:23

标签: asp.net

我有点奇怪的事。间歇性地发现,对于某个页面的请求,我发现未找到文件未找到异常。这是例外

  

System.Web.HttpException(0x80004005):文件' /xyz.aspx'才不是   存在。在System.Web.UI.Util.CheckVirtualFileExists(VirtualPath   virtualPath)at   System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath   virtualPath,Boolean noBuild,Boolean allowCrossApp,Boolean   allowBuildInPrecompile,Boolean throwIfNotFound,Boolean   保证在最近的时候   System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext的   context,VirtualPath virtualPath,Boolean noBuild,Boolean   allowCrossApp,Boolean allowBuildInPrecompile,Boolean   throwIfNotFound,Boolean ensureIsUpToDate)at   System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath   virtualPath,HttpContext context,Boolean allowCrossApp,Boolean   throwIfNotFound)at   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath   virtualPath,Type requiredBaseType,HttpContext context,Boolean   allowCrossApp)at   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context,   字符串requestType,VirtualPath virtualPath,String physicalPath)at   System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context,   String requestType,String virtualPath,String path)at   System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   在System.Web.HttpApplication.ExecuteStep(IExecutionStep步骤,   布尔和放大器; completedSynchronously)

奇怪的是,这是由页面xyz.aspx抛出的。我对它有点困惑 - 如果页面确实不存在,那么我希望看到404.没有流读取器/编写器尝试物理加载文件。

有什么想法吗?

0 个答案:

没有答案