我已经在C:\inetpub\wwwroot
中部署了一个asp.net网站,并且工作正常。但是,我想调试部分代码,将同一文件夹复制到桌面,然后使用IIS Express通过Visual Studio启动它。页面加载后,它开始为我提供许多错误窗口,这些错误窗口如下所示:
*Error Message: The file '/ajax/abc.cde.GetSessionValue.ashx' does not exist.
Stack Trace: at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
at System.Web.UI.SimpleHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.UI.SimpleHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Source: System.Web
Inner Exception:*
为了保护我们的代码隐私,我更改了名称abc.cde.GetSessionValue.ashx
。我已经通过代码的所有文件夹,子文件夹搜索了该文件,该文件在任何地方都不存在。那么问题是,当我只是从Internet Explorer启动它并在通过Visual Studio运行时失败并弹出错误时,它如何运行?