今天遇到客户说
[HttpException (0x80070005): 对“d:\web\web.config”的访问被拒绝。未能开始监视文件更改。]
 System.Web.DirMonCompletion..ctor(DirectoryMonitor dirMon, String dir, Boolean watchSubtree, UInt32 notifyFilter) +139
 System.Web.DirectoryMonitor.StartMonitoring() +42
 System.Web.DirectoryMonitor.StartMonitoringFile(String file, FileChangeEventHandler callback, String alias) +154
 System.Web.FileChangesMonitor.StartMonitoringDirectoryRenamesAndBinDirectory(String dir, FileChangeEventHandler callback) +278
 System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +331

[HttpException (0x80004005): ASP.NET 初始化错误]
 System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +982
 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +128

--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.2300; ASP.NET 版本:1.1.4322.2300

d:\web\是根目录没有web.config啊!
奇怪
ASPX 程序是放在根目录下面的虚拟目录的!
网上 看了一下,都说是权限的问题!
叫把eveRyone权限给写!
但是做为安全角度给eveRyone权限太危险了!

给IIS_WPG的权限以后程序就正常运行了

为了管理的方便,在安装 IIS 6 时创建了 IIS_WPG 组(也称为 IIS 工作进程组,IIS Worker Process Group),而且它的成员包括 Local System(本地系统)、Local Service(本地服务)、Network Service(网络服务)和 IWAM 帐户。

用net localgroup IIS_WPG查看的结果

别名 IIS_WPG
注释 IIS 工作进程组

成员

---------------------------------------------------
IWAM_NADL-YY
NT AUTHORITY\NETWORK SERVICE
NT AUTHORITY\SERVICE
NT AUTHORITY\SYSTEM




 

相关文章:

  • 2021-08-08
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2021-08-29
  • 2021-11-30
  • 2022-12-23
猜你喜欢
  • 2021-12-08
  • 2022-12-23
  • 2021-08-15
  • 2021-07-11
  • 2022-12-23
  • 2021-12-12
  • 2022-02-27
相关资源
相似解决方案