Web.Config - 由于权限不足,无法读取配置文件 [英] Web.Config - Cannot read configuration file due to insufficient permissions

查看:2279
本文介绍了Web.Config - 由于权限不足,无法读取配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到错误:

Module  IIS Web Core
Notification    Unknown
Handler Not yet determined
Error Code  0x80070005
Config Error    Cannot read configuration file due to insufficient permissions
Config File \\?\C:\inetpub\wwwroot\web.config

文件本身具有IUSR的完全权限。 IIS正在ApplicationPoolIdentity下运行其应用程序池。我在文件上做了一个文件监视器,我看到了这个:

The file itself has full permissions for IUSR. IIS is running its app pool under ApplicationPoolIdentity. I did a file monitor on the file, and I see this:

9:04:43.8035456 AM  w3wp.exe    8104    CreateFile  C:\inetpub\wwwroot\Web.config   ACCESS DENIED   Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, AllocationSize: n/a

不知道为什么我收到此错误...有什么想法吗?

No idea why I am getting this error... Any ideas?

推荐答案

尝试将这些帐户的读/写访问权限提供给Web应用程序的根文件夹和所有文件/子目录:

Try giving read/write access to these accounts to the root folder of your Web application and all files/subs within:

网络,网络服务,当然还有IIS_IUSRS

NETWORK, NETWORK SERVICE, and of course IIS_IUSRS

这篇关于Web.Config - 由于权限不足,无法读取配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆