由于权限不足,无法读取配置文件
在升级到 Windows Server 2008 环境之前,我尝试在本地计算机上的 IIS 实例上测试我的 Web 服务。当我尝试浏览该服务时,我收到此消息。我创建了一个自定义应用程序池,该服务将在该池下运行。所以我猜测该应用程序 ID 没有访问该文件夹等的权限...顺便说一句,我得到了这个小细节...
“当读取 Web 服务器或 Web 应用程序的配置文件时出现问题时,就会出现此错误。在某些情况下,事件日志可能包含有关导致此错误的原因的更多信息。”
我想我需要授予该应用程序身份权限,但我不确定如何实现这一点。
还有其他方法可以完成此任务吗?
I am trying to test my Web Service on an IIS instance on my local machine before I promote to a windows server 2008 environment. I get this when I attempt to browse to the service. I have created a custom application pool that this service will run under btw. So I am guessing that that application ID does not have permissions to access that folder etc... I get this little detail btw...
"This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error."
I am thinking I need to give that application identity permissions, but I am unsure how to accomplish this.
Is there another way to get this done?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
不确定这对你来说是否太晚了。
IIS 网站由 USERS 或 IIS_IUSRS 运行。
尝试执行以下操作:
computername\IIS_IUSRS
或computername\USERS< /code>
具有读取权限。
Not sure whether this is too late for you.
The IIS website is run by either USERS or IIS_IUSRS.
Try to do following:
computername\IIS_IUSRS
orcomputername\USERS
with Read permission.1.打开IIS
2.在左侧面板上单击应用程序池
3.然后转到其属性并将标识值从“ApplicationPoolIdentity”更改为“Local System”。
当我尝试这个时,我解决了这个问题。
1.Open IIS
2.On left side panel click on application pools
3.And go to its properties and change identity value from "ApplicationPoolIdentity" to "Local System".
I resolved the problem when i tried this.
我在 Windows 8.1 上遇到了类似的问题。我通过将身份值从
ApplicationPoolIdentity
更改为Local System
来修复此问题。I faced a similar issue on Windows 8.1. I fixed it by changing identity value from
ApplicationPoolIdentity
toLocal System
.检查您的网站安全性->身份验证功能。如果anonymousAuthentication已启用,请单击编辑链接(位于“操作”列中)以查看正在使用哪个身份;如果是IUSR,请确保IUSR对网站的文件夹和文件具有文件系统ACL权限。如果设置为“ApplicationPoolIdentity”,请确保组 IIS_IUSRS 具有相同的权限,因为“ApplicationPoolIdentity”会动态添加到 IIS_IUSRS 组运行时。
Check your sites Security -> Authentication feature. If anonymousAuthentication is enabled, click on the Edit link (in the Actions column) to see which identity is being used; if it is IUSR, make sure IUSR has FileSystem ACL privileges on the website's folder and files. If it set to 'ApplicationPoolIdentity' make sure group IIS_IUSRS has the same rights, because the 'ApplicationPoolIdentity' is dynamically added to the IIS_IUSRS group at runtime.
在 IIS(7) 上将应用程序的身份设置从“ApplicationPoolIdentity”修改为“LocalSystem”解决了我的问题。当向 IIS_IUSRS 添加权限时没有。我不太明白为什么。
Modifying the application's identity setting from "ApplicationPoolIdentity" to "LocalSystem" on IIS(7) solved my issue. when adding permission to the IIS_IUSRS did not. I don't quite understand why though.
对我来说,我只是将文件转移到 c:\inetpub\wwwroot 下,错误就消失了。
For me, I just transferred my files under c:\inetpub\wwwroot and the error is gone.
我所要做的就是编辑 IIS 7.5 中虚拟目录(应用程序)的权限并将 IUSR 添加到权限中。这解决了它。
All I had to do was edit permissions for the virtual directory(application) in IIS 7.5 and add IUSR to the permissions. That fixed it.
如果您在IIS应用程序池中选择了旧版本的.Net框架,有时可能会导致此问题。所以尝试使用更高的.net框架版本。
If you chosen old version of .Net framework in application pool of IIS may sometimes cause this issue. So Try with higher .net framework version.