web.config 的访问被拒绝。未能开始监视文件更改
5040是我的虚拟目录,iis装好后 运行 http://localhost/localstart.asp没问题
但运行 http://localhost/5040/ch01/aa.aspx 就出现下面的问题了
我的虚拟目录 权限 以及 C:\Inetpub\wwwroot 权限 对 everyone都设得最高了
“/5040”应用程序中的服务器错误。
--------------------------------------------------------------------------------
对“C:\BegASPNET\ch01\web.config”的访问被拒绝。未能开始监视文件更改。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Web.HttpException: 对“C:\BegASPNET\ch01\web.config”的访问被拒绝。未能开始监视文件更改。
源错误:
执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:
[HttpException (0x80070005): 对“C:\BegASPNET\ch01\web.config”的访问被拒绝。未能开始监视文件更改。]
System.Web.DirectoryMonitor.AddFileMonitor(String file) +381
System.Web.DirectoryMonitor.StartMonitoringFile(String file, FileChangeEventHandler callback, String alias) +76
System.Web.FileChangesMonitor.StartMonitoringFile(String alias, FileChangeEventHandler callback) +322
System.Web.Configuration.HttpConfigurationSystem.AddFileDependency(String file) +139
System.Web.Configuration.HttpConfigurationSystem.ComposeConfig(String reqPath, IHttpMapPath configmap) +503
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) +39
System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext context, Exception e) +486
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.2032; ASP.NET 版本:1.1.4322.2032