授予访问IIS 7.5 ApplicationPoolIdentity [英] Granting access to IIS 7.5 ApplicationPoolIdentity

查看:335
本文介绍了授予访问IIS 7.5 ApplicationPoolIdentity的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试访问我的ASP.NET MVC应用程序,我得到的错误:

When I try to access my ASP.NET MVC application I get the error:

Access to the path 'C:\inetpub\wwwroot\website\bin\test.Platform.Config.xml' is denied

我运行IIS 7.5与具有属性的应用程序池:

I run IIS 7.5 with an application pool that has the property:

Identity: ApplicationPoolIdentity

我想这是因为'ApplicationPoolIdentity'不能读我尝试访问的文件。所以我的问题是:既然ApplicationPoolIdentity不是系统用户,其中用户或组,我需要授予为了让'ApplicationPoolIdentity'读取文件的进一步访问

I imagine it is because the 'ApplicationPoolIdentity' cannot read the file I try to access. So my question is: Since the 'ApplicationPoolIdentity' is not a system user, which user or group do I need to grant further access in order to allow the 'ApplicationPoolIdentity' to read the file?

还是有这个授权问题?

推荐答案

好吧,我有解决方案:

在使用ApplicationPoolIdentity与IIS 7.5对应的用户(一个虚拟系统用户):

When using "ApplicationPoolIdentity" with IIS 7.5 the corresponding user is (a virtual system user):

"IIS AppPool\<AppPoolName>"

您可以授予此用户权限,并通过搜索该用户检查安全设置。这里查看完整的解释:

You can grant this user permissions and check security setting by searching for this user. See the full explanation here:

<一个href=\"http://www.iis.net/learn/manage/configuring-security/application-pool-identities\">http://www.iis.net/learn/manage/configuring-security/application-pool-identities

这篇关于授予访问IIS 7.5 ApplicationPoolIdentity的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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